]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: fix build without libcap 1560/head
authorDima Krasner <dima@securingsam.com>
Sun, 14 May 2017 09:24:59 +0000 (12:24 +0300)
committerDima Krasner <dima@securingsam.com>
Sun, 14 May 2017 09:40:02 +0000 (12:40 +0300)
Signed-off-by: Dima Krasner <samdima@securingsam.com>
src/lxc/conf.c

index 35bdb249ba6248a1467c0ff89a367c5c3a19a55e..76a190120340ed48953aebbd53dc2649bff1a3ee 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