mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 13:37:02 +01:00
FIX CONFIG_AUDIT test
This commit is contained in:
parent
22d223fece
commit
bc5809f92e
@ -21,7 +21,7 @@ KERNEL_OPTION="CONFIG_AUDIT"
|
|||||||
|
|
||||||
# This function will be called if the script status is on enabled / audit mode
|
# This function will be called if the script status is on enabled / audit mode
|
||||||
audit () {
|
audit () {
|
||||||
is_kernel_option_enabled "^$KERNEL_OPTION="
|
is_kernel_option_enabled $KERNEL_OPTION
|
||||||
if [ $FNRET = 0 ]; then # 0 means true in bash, so it IS activated
|
if [ $FNRET = 0 ]; then # 0 means true in bash, so it IS activated
|
||||||
ok "$KERNEL_OPTION is enabled"
|
ok "$KERNEL_OPTION is enabled"
|
||||||
else
|
else
|
||||||
@ -32,7 +32,7 @@ audit () {
|
|||||||
|
|
||||||
# This function will be called if the script status is on enabled mode
|
# This function will be called if the script status is on enabled mode
|
||||||
apply () {
|
apply () {
|
||||||
is_kernel_option_enabled "^$KERNEL_OPTION="
|
is_kernel_option_enabled $KERNEL_OPTION
|
||||||
if [ $FNRET = 0 ]; then # 0 means true in bash, so it IS activated
|
if [ $FNRET = 0 ]; then # 0 means true in bash, so it IS activated
|
||||||
ok "$KERNEL_OPTION is enabled"
|
ok "$KERNEL_OPTION is enabled"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user