2.18_disable_cramfs.sh

This commit is contained in:
thibault.dewailly
2016-04-07 06:56:14 +02:00
parent a578e889ee
commit b87e9a6f14
3 changed files with 72 additions and 0 deletions

View File

@ -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