Dear developers

I'm trying lxc on my gentoo 2.6.37 and this patch fixes a small thing
that makes people unsure [1]. Please apply it. It's against lxc git
master.

Thanks for your effort in lxc. It's nice to see a native linux container
virtualization merging.

Kind regards,
Reto Gantenbein


[1]: https://bugs.archlinux.org/task/22386?project=0
>From bcd99efc484a26c939dc4d8767739709d9389c92 Mon Sep 17 00:00:00 2001
From: Reto Gantenbein <reto.gantenb...@linuxmonk.ch>
Date: Tue, 18 Jan 2011 00:45:17 +0100
Subject: [PATCH] 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

---
 src/lxc/lxc-checkconfig.in |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/lxc/lxc-checkconfig.in b/src/lxc/lxc-checkconfig.in
index 7097fef..6ce79f4 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"
-- 
1.7.3.4

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to