summaryrefslogtreecommitdiff
path: root/cfengine
diff options
context:
space:
mode:
Diffstat (limited to 'cfengine')
-rw-r--r--cfengine/cf.services.harden20
1 files changed, 5 insertions, 15 deletions
diff --git a/cfengine/cf.services.harden b/cfengine/cf.services.harden
index ae315b9..21f8bf1 100644
--- a/cfengine/cf.services.harden
+++ b/cfengine/cf.services.harden
@@ -119,21 +119,11 @@ editfiles:
LocateLineMatching "^#[[:blank:]]*!/usr/src"
ReplaceLineWith "!/usr/src"
ResetSearch "1"
- BeginGroupIfNoLineMatching "^!/initrc"
- Append "!/initrc"
- EndGroup
- ResetSearch "1"
- BeginGroupIfNoLineMatching "^!/.journal"
- Append "!/.journal"
- EndGroup
- ResetSearch "1"
- BeginGroupIfNoLineMatching "^!/usr/local"
- Append "!/usr/local"
- EndGroup
- ResetSearch "1"
- BeginGroupIfNoLineMatching "^!/usr/src"
- Append "!/usr/src"
- EndGroup
+ CatchAbort
+ AppendIfNoLineMatching "!/initrc"
+ AppendIfNoLineMatching "!/.journal"
+ AppendIfNoLineMatching "!/usr/local"
+ AppendIfNoLineMatching "!/usr/src"
}
# { /etc/cron.daily/integrit
# #