]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: fix build without libcap
authorDima Krasner <dima@securingsam.com>
Sun, 14 May 2017 09:24:59 +0000 (12:24 +0300)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:21:23 +0000 (17:21 -0400)
Signed-off-by: Dima Krasner <samdima@securingsam.com>
src/lxc/conf.c

index 450d34222e87d6ca9a340bc9eb477ab9e4836378..c90540e2e9c649d19b676bb2451c1dcbe1525b0d 100644 (file)
@@ -130,6 +130,14 @@ lxc_log_define(lxc_conf, lxc);
 #define LO_FLAGS_AUTOCLEAR 4
 #endif
 
+#ifndef CAP_SETUID
+#define CAP_SETUID 7
+#endif
+
+#ifndef CAP_SETGID
+#define CAP_SETGID 6
+#endif
+
 /* needed for cgroup automount checks, regardless of whether we
  * have included linux/capability.h or not */
 #ifndef CAP_SYS_ADMIN