mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-22 02:33:42 +02:00
IMP(4.1.x): add tests for each checks
This commit is contained in:
@ -39,6 +39,7 @@ apply () {
|
||||
does_file_exist $FILE
|
||||
if [ $FNRET != 0 ]; then
|
||||
warn "$FILE does not exist, creating it"
|
||||
mkdir -p /etc/audit
|
||||
touch $FILE
|
||||
else
|
||||
ok "$FILE exists"
|
||||
|
@ -44,6 +44,7 @@ apply () {
|
||||
does_file_exist $FILE
|
||||
if [ $FNRET != 0 ]; then
|
||||
warn "$FILE does not exist, creating it"
|
||||
mkdir -p /etc/audit/auditd.conf
|
||||
touch $FILE
|
||||
else
|
||||
ok "$FILE exists"
|
||||
|
@ -44,6 +44,7 @@ apply () {
|
||||
does_file_exist $FILE
|
||||
if [ $FNRET != 0 ]; then
|
||||
warn "$FILE does not exist, creating it"
|
||||
mkdir -p /etc/audit
|
||||
touch $FILE
|
||||
else
|
||||
ok "$FILE exists"
|
||||
|
@ -12,7 +12,7 @@ set -e # One error, it's over
|
||||
set -u # One variable unset, it's over
|
||||
|
||||
HARDENING_LEVEL=4
|
||||
DESCRIPTION="Record events taht modify date and time information."
|
||||
DESCRIPTION="Record events that modify date and time information."
|
||||
|
||||
AUDIT_PARAMS='-a always,exit -F arch=b64 -S adjtimex -S settimeofday -k time-change
|
||||
-a always,exit -F arch=b32 -S adjtimex -S settimeofday -S stime -k time-change
|
||||
|
Reference in New Issue
Block a user