feat: add debian12 scripts

ufw_is_installed.sh				-> 4.1.1
iptables_persistent_is_not_installed.sh		-> 4.1.2
ufw_is_enabled					-> 4.1.3
nftables_is_not_installed.sh 			-> 4.3.1.2
libpam_runtime_is_version 			-> 5.3.1.1
This commit is contained in:
damien cavagnini
2025-07-28 14:47:41 +02:00
parent 15a59d6b2e
commit c2598e484e
10 changed files with 494 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# shellcheck shell=bash
# run-shellcheck
test_audit() {
describe set up successful check
apt remove -y ufw iptables-persistent
describe Running success test
register_test retvalshouldbe 0
# shellcheck disable=2154
run failure "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
describe set up failed check
DEBIAN_FRONTEND='noninteractive' apt -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install iptables-persistent apt-utils -y
describe running failed check
register_test retvalshouldbe 1
# shellcheck disable=2154
run success "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
apt remove -y iptables-persistent
apt autoremove -y
}