[lxc-devel] [PATCH] Define PR_CAPBSET_READ when missing

Stéphane Graber stgraber at ubuntu.com
Thu Jan 10 20:22:30 UTC 2013


PR_CAPBSET_READ isn't defined in bionic, so define it if it's not.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 src/lxc/caps.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lxc/caps.c b/src/lxc/caps.c
index 53c552b..7e64a38 100644
--- a/src/lxc/caps.c
+++ b/src/lxc/caps.c
@@ -37,6 +37,10 @@ lxc_log_define(lxc_caps, lxc);
 #if HAVE_SYS_CAPABILITY_H
 #include <sys/capability.h>
 
+#ifndef PR_CAPBSET_READ
+#define PR_CAPBSET_READ 23
+#endif
+
 int lxc_caps_reset(void)
 {
 	cap_t cap = cap_init();
-- 
1.8.0





More information about the lxc-devel mailing list