Commit bb02d90e by Jan Niehusmann Committed by Daniel Lezcano

Update file capa detection for kernels >=2.6.37

The comment containing the version number at the beginning of the kernel config file changed its format with 2.6.37. This trivial patch makes the grep less specific, so it triggers for both formats. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 7593bdfb
...@@ -74,7 +74,7 @@ echo "--- Misc ---" ...@@ -74,7 +74,7 @@ echo "--- Misc ---"
echo -n "Veth pair device: " && is_enabled CONFIG_VETH echo -n "Veth pair device: " && is_enabled CONFIG_VETH
echo -n "Macvlan: " && is_enabled CONFIG_MACVLAN 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' $CONFIG | \
sed -r 's/.*2.6.([0-9]{2}).*/\1/') sed -r 's/.*2.6.([0-9]{2}).*/\1/')
echo -n "File capabilities: " && echo -n "File capabilities: " &&
[[ ${KVER_MINOR} < 33 ]] && is_enabled CONFIG_SECURITY_FILE_CAPABILITIES || [[ ${KVER_MINOR} < 33 ]] && is_enabled CONFIG_SECURITY_FILE_CAPABILITIES ||
......
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