mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-22 02:33:42 +02:00
2.18_disable_cramfs.sh
This commit is contained in:
13
lib/utils.sh
13
lib/utils.sh
@ -1,7 +1,20 @@
|
||||
# CIS Debian 7 Hardening Utility functions
|
||||
|
||||
|
||||
#
|
||||
# Kernel Options checks
|
||||
#
|
||||
|
||||
is_kernel_option_enabled() {
|
||||
local KERNEL_OPTION=$1
|
||||
RESULT=$(zgrep -i $KERNEL_OPTION /proc/config.gz | grep -vE "^#")
|
||||
ANSWER=$(cut -d = -f 2 <<< $RESULT)
|
||||
if [ "x$ANSWER" = "xy" ]; then
|
||||
FNRET=0
|
||||
else
|
||||
FNRET=1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Mounting point manipulation
|
||||
|
Reference in New Issue
Block a user