mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-04 14:21:15 +02:00

- auditd_logs_full_halt.sh -> 6.3.2.3 - systemd_journal_upload_remote_auth.sh -> 6.2.1.2.2 - sudo_auth_timeout.sh -> 5.2.6 - libpam_modules_is_installed.sh -> 5.3.1.2 - ufw_not_installed_with_nftables.sh -> 4.2.2 - ufw_not_installed_with_iptables.sh -> 4.3.1.3
28 lines
762 B
Bash
28 lines
762 B
Bash
# shellcheck shell=bash
|
|
# run-shellcheck
|
|
test_audit() {
|
|
describe prepare test
|
|
apt install systemd-journal-remote -y
|
|
|
|
# by default authentication should not be configured
|
|
describe Running failed
|
|
register_test retvalshouldbe 1
|
|
# shellcheck disable=2154
|
|
run failed "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
|
|
|
describe Fix situation
|
|
for i in "URL" "ServerKeyFile" "ServerCertificateFile" "TrustedCertificateFile"; do
|
|
echo "$i=" >>/etc/systemd/journal-upload.conf
|
|
done
|
|
|
|
describe Running resolved
|
|
register_test retvalshouldbe 0
|
|
# shellcheck disable=2154
|
|
run resolved "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
|
|
|
describe clean test
|
|
apt purge systemd-journal-remote -y
|
|
apt autoremove -y
|
|
|
|
}
|