From: Reto Gantenbein Date: Mon, 17 Jan 2011 23:45:17 +0000 (+0100) Subject: Adds correct file capa detection for >2.6.32 The kernel compile parameter was removed... X-Git-Tag: lxc-0.7.4-rc1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb4c7e28291f013ae30e21108177556fdff870d1;p=thirdparty%2Flxc.git Adds correct file capa detection for >2.6.32 The kernel compile parameter was removed with kernel release 2.6.33 Since then file capabilities are enabled by default kernel commit: b3a222e52e4d4be77cc4520a57af1a4a0d8222d1 Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/lxc-checkconfig.in b/src/lxc/lxc-checkconfig.in index 7097fef4c..6ce79f420 100755 --- a/src/lxc/lxc-checkconfig.in +++ b/src/lxc/lxc-checkconfig.in @@ -76,8 +76,10 @@ echo -n "Macvlan: " && is_enabled CONFIG_MACVLAN echo -n "Vlan: " && is_enabled CONFIG_VLAN_8021Q KVER_MINOR=$($GREP '^# Linux kernel version:' $CONFIG | \ sed -r 's/.*2.6.([0-9]{2}).*/\1/') -[[ ${KVER_MINOR} < 33 ]] && echo -n "File capabilities: " && is_enabled \ - CONFIG_SECURITY_FILE_CAPABILITIES +echo -n "File capabilities: " && + [[ ${KVER_MINOR} < 33 ]] && is_enabled CONFIG_SECURITY_FILE_CAPABILITIES || + [[ ${KVER_MINOR} > 32 ]] && $SETCOLOR_SUCCESS && echo -e "enabled" && + $SETCOLOR_NORMAL echo echo "Note : Before booting a new kernel, you can check its configuration"