mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 13:37:02 +01:00
CLEAN: Remove old checks (3.2, 8.2.4)
This commit is contained in:
parent
e1846ebd4c
commit
36d55a6f79
@ -1,10 +0,0 @@
|
|||||||
# run-shellcheck
|
|
||||||
test_audit() {
|
|
||||||
describe Running on blank host
|
|
||||||
register_test retvalshouldbe 0
|
|
||||||
dismiss_count_for_test
|
|
||||||
# shellcheck disable=2154
|
|
||||||
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
|
||||||
|
|
||||||
# TODO fill comprehensive tests
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
# run-shellcheck
|
|
||||||
test_audit() {
|
|
||||||
describe Running on blank host
|
|
||||||
register_test retvalshouldbe 0
|
|
||||||
dismiss_count_for_test
|
|
||||||
# shellcheck disable=2154
|
|
||||||
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
|
||||||
|
|
||||||
|
|
||||||
describe Creating failed state
|
|
||||||
touch /var/log/auth.log
|
|
||||||
touch /var/log/kern.log
|
|
||||||
register_test retvalshouldbe 1
|
|
||||||
run failing /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
|
||||||
|
|
||||||
describe Setting exceptions
|
|
||||||
echo 'EXCEPTIONS=/var/log/auth.log:root:root:600' >> /opt/debian-cis/etc/conf.d/"${script}".cfg
|
|
||||||
register_test retvalshouldbe 1
|
|
||||||
run excepandfail /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
|
||||||
|
|
||||||
describe Correcting situation
|
|
||||||
sed -i 's/audit/enabled/' /opt/debian-cis/etc/conf.d/"${script}".cfg
|
|
||||||
/opt/debian-cis/bin/hardening/"${script}".sh || true
|
|
||||||
|
|
||||||
register_test retvalshouldbe 0
|
|
||||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user