]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Adds correct file capa detection for >2.6.32 The kernel compile parameter was removed...
authorReto Gantenbein <reto.gantenbein@linuxmonk.ch>
Mon, 17 Jan 2011 23:45:17 +0000 (00:45 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 18 Jan 2011 23:29:41 +0000 (00:29 +0100)
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-checkconfig.in

index 7097fef4c46b524832ad84f3a35f523634b7ee02..6ce79f420e2c034cc1f6a8a0ad0327030d36cce4 100755 (executable)
@@ -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"