diff options
Diffstat (limited to 'cfengine')
-rw-r--r-- | cfengine/cf.services.harden | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cfengine/cf.services.harden b/cfengine/cf.services.harden index bca0aa8..8a170f8 100644 --- a/cfengine/cf.services.harden +++ b/cfengine/cf.services.harden @@ -1,4 +1,6 @@ control: + AddInstallable = ( install_logcheck ) + logcheck = ( /etc/logcheck ) # type viser om maskinen er workstation eller server. Bruges til at linke de rigtige steder @@ -6,6 +8,9 @@ control: Standalone_xenux:: type = ( workstation ) !Standalone_xenux:: type = ( server ) +groups: + install_logcheck = ( '/usr/sbin/test ! -e /usr/sbin/logcheck' ) + editfiles: # AIDE section { /etc/aide/aide.conf @@ -128,4 +133,9 @@ links: $(logcheck)/ignore.d/local-postfix -> $(LocalCommon)/logcheck/ignore.d.$(type)/postfix $(logcheck)/violations.ignore.d/local-ssh -> $(LocalCommon)/logcheck/violations.ignore.d/ssh - $(logcheck)/violations.ignore.d/local-postfix -> $(LocalCommon)/logcheck/violations.ignore.d/postfix
\ No newline at end of file + $(logcheck)/violations.ignore.d/local-postfix -> $(LocalCommon)/logcheck/violations.ignore.d/postfix + +shellcommands: + install_logcheck:: + #Installerer logcheck hvis ikke allerede er + "/usr/bin/yes no | /usr/bin/apt-get -q=2 install logcheck"
\ No newline at end of file |