mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-04 22:31:16 +02:00
feat: add debian12 scripts
- at_is_restricted.sh -> 2.4.2.1 - wireless_interfaces_disabled.sh -> 3.1.2 - bluetooth_is_disabled.sh -> 3.1.3 - sudo_no_nopasswd.sh -> 5.2.4 - aide_is_installed.sh -> 6.1.1
This commit is contained in:
9
tests/hardening/sudo_no_nopasswd.sh
Normal file
9
tests/hardening/sudo_no_nopasswd.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
# shellcheck shell=bash
|
||||
# run-shellcheck
|
||||
test_audit() {
|
||||
describe Running on blank host
|
||||
# we are providing a "NOPASSWD" sudoers for cis tests
|
||||
register_test retvalshouldbe 1
|
||||
# shellcheck disable=2154
|
||||
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
||||
}
|
Reference in New Issue
Block a user