IMP(4.1.x): add tests for each checks

This commit is contained in:
Thibault Ayanides
2020-11-02 15:47:27 +01:00
parent 5568065c35
commit ee4b2417c2
23 changed files with 199 additions and 20 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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