summaryrefslogtreecommitdiff
path: root/integrit/integrit.cf
blob: db2fe20754d746e8b8bf6f1fa20738403da7da85 (plain)
  1. #! /usr/bin/cfengine -qf
  2. control:
  3. OutputPrefix = ("${cf_prefix}")
  4. actionsequence = ( editfiles )
  5. editfiles:
  6. { /etc/integrit/integrit.conf
  7. #
  8. # Uncomment suggested defaults
  9. #
  10. SetCommentStart "# "
  11. SetCommentEnd ""
  12. UnCommentLinesMatching "^# root=/"
  13. UnCommentLinesMatching "^# known=/var/lib/integrit/.*"
  14. UnCommentLinesMatching "^# current=/var/lib/integrit/.*"
  15. UnCommentLinesMatching "^# !/cdrom"
  16. UnCommentLinesMatching "^# !/dev"
  17. UnCommentLinesMatching "^# !/etc"
  18. UnCommentLinesMatching "^# !/floppy"
  19. UnCommentLinesMatching "^# !/home"
  20. UnCommentLinesMatching "^# !/lost\+found"
  21. UnCommentLinesMatching "^# !/mnt"
  22. UnCommentLinesMatching "^# !/proc"
  23. UnCommentLinesMatching "^# !/root"
  24. UnCommentLinesMatching "^# !/tmp"
  25. UnCommentLinesMatching "^# !/var"
  26. UnCommentLinesMatching "^# =/usr/include"
  27. UnCommentLinesMatching "^# =/usr/X11R6/include"
  28. UnCommentLinesMatching "^# =/usr/doc"
  29. UnCommentLinesMatching "^# =/usr/info"
  30. UnCommentLinesMatching "^# =/usr/share"
  31. UnCommentLinesMatching "^# =/usr/X11R6/man"
  32. UnCommentLinesMatching "^# =/usr/X11R6/lib/X11/fonts"
  33. UnCommentLinesMatching "^# !/usr/local"
  34. UnCommentLinesMatching "^# !/usr/src"
  35. AppendIfNoSuchLine "!/initrd"
  36. AppendIfNoSuchLine "!/.journal"
  37. AppendIfNoSuchLine "!/usr/local"
  38. AppendIfNoSuchLine "!/usr/src"
  39. AppendIfNoSuchLine "!/dev/cpu/mtrr"
  40. AppendIfNoSuchLine "!/sys"
  41. }
  42. { /etc/integrit/integrit.debian.conf
  43. #
  44. # Make sure CONFIGS is set to /etc/integrit/integrit.conf
  45. #
  46. LocateLineMatching "^CONFIGS=.*"
  47. BeginGroupIfNoLineMatching '^CONFIGS="/etc/integrit/integrit.conf"'
  48. ReplaceLineWith 'CONFIGS="/etc/integrit/integrit.conf"'
  49. EndGroup
  50. }