add new test to test database

This commit is contained in:
Simon Biewald 2020-07-09 18:27:02 +02:00
parent b2be7c160e
commit 38b6105c60
No known key found for this signature in database
GPG Key ID: DAD5F452603F1344
2 changed files with 2 additions and 1 deletions

View File

@ -419,6 +419,7 @@ TIME-3170:test:security:time::Check configuration files:
TIME-3180:test:security:time::Report if ntpctl cannot communicate with OpenNTPD:
TIME-3181:test:security:time::Check status of OpenNTPD time synchronisation
TIME-3182:test:security:time::Check OpenNTPD has working peers
TIME-3185:test:security:time::Check systemd-timesyncd synchronized time
TOOL-5002:test:security:tooling::Checking for automation tools:
TOOL-5102:test:security:tooling::Check for presence of Fail2ban:
TOOL-5104:test:security:tooling::Enabled tests for Fail2ban:

View File

@ -584,7 +584,7 @@
fi
Register --test-no TIME-3185 --preqs-met "${PREQS_MET}" --weight L --network NO --category "time" --description "Check systemd-timesyncd synchronized time"
Register --test-no TIME-3185 --preqs-met "${PREQS_MET}" --weight L --network NO --category "security" --description "Check systemd-timesyncd synchronized time"
if [ ${SKIPTEST} -eq 0 ]; then
if [ -e /run/systemd/timesync/synchronized ]; then
FIND=$(( $(date +%s) - $(stat -L --format %Y /run/systemd/timesync/synchronized) ))