Commit fb4c7e28 by Reto Gantenbein Committed by Daniel Lezcano

Adds correct file capa detection for >2.6.32 The kernel compile parameter was…

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: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent b0efbac4
...@@ -76,8 +76,10 @@ echo -n "Macvlan: " && is_enabled CONFIG_MACVLAN ...@@ -76,8 +76,10 @@ echo -n "Macvlan: " && is_enabled CONFIG_MACVLAN
echo -n "Vlan: " && is_enabled CONFIG_VLAN_8021Q echo -n "Vlan: " && is_enabled CONFIG_VLAN_8021Q
KVER_MINOR=$($GREP '^# Linux kernel version:' $CONFIG | \ KVER_MINOR=$($GREP '^# Linux kernel version:' $CONFIG | \
sed -r 's/.*2.6.([0-9]{2}).*/\1/') sed -r 's/.*2.6.([0-9]{2}).*/\1/')
[[ ${KVER_MINOR} < 33 ]] && echo -n "File capabilities: " && is_enabled \ echo -n "File capabilities: " &&
CONFIG_SECURITY_FILE_CAPABILITIES [[ ${KVER_MINOR} < 33 ]] && is_enabled CONFIG_SECURITY_FILE_CAPABILITIES ||
[[ ${KVER_MINOR} > 32 ]] && $SETCOLOR_SUCCESS && echo -e "enabled" &&
$SETCOLOR_NORMAL
echo echo
echo "Note : Before booting a new kernel, you can check its configuration" echo "Note : Before booting a new kernel, you can check its configuration"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment