2020-11-27 09:22:47 +01:00
|
|
|
# shellcheck shell=bash
|
2019-02-14 18:10:46 +01:00
|
|
|
# run-shellcheck
|
|
|
|
test_audit() {
|
|
|
|
describe Running on blank host
|
2023-09-07 14:36:08 +02:00
|
|
|
register_test retvalshouldbe 1
|
2019-02-14 18:10:46 +01:00
|
|
|
dismiss_count_for_test
|
|
|
|
# shellcheck disable=2154
|
|
|
|
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
|
|
|
|
2023-09-07 14:36:08 +02:00
|
|
|
describe Correcting situation
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y iptables
|
|
|
|
|
|
|
|
describe Checking resolved state
|
|
|
|
register_test retvalshouldbe 0
|
|
|
|
register_test contain "provides firewalling feature"
|
|
|
|
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
|
|
|
|
2019-02-14 18:10:46 +01:00
|
|
|
}
|