mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-04 22:31:16 +02:00
feat: add debian12 scripts
- nftables_is_enabled.sh -> 4.2.9 - nftables_has_table.sh -> 4.2.4 - nftables_has_base_chains.sh -> 4.2.5
This commit is contained in:
11
tests/hardening/nftables_has_base_chains.sh
Normal file
11
tests/hardening/nftables_has_base_chains.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
# running on a non privilieged container, wont test much...
|
||||
describe Running on blank host
|
||||
register_test retvalshouldbe 1
|
||||
dismiss_count_for_test
|
||||
# shellcheck disable=2154
|
||||
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
||||
|
||||
}
|
11
tests/hardening/nftables_has_table.sh
Normal file
11
tests/hardening/nftables_has_table.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
# running on a non privilieged container, wont test much...
|
||||
describe Running on blank host
|
||||
register_test retvalshouldbe 1
|
||||
dismiss_count_for_test
|
||||
# shellcheck disable=2154
|
||||
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
||||
|
||||
}
|
10
tests/hardening/nftables_is_enabled.sh
Normal file
10
tests/hardening/nftables_is_enabled.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
register_test retvalshouldbe 0
|
||||
dismiss_count_for_test
|
||||
# shellcheck disable=2154
|
||||
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
||||
|
||||
}
|
Reference in New Issue
Block a user