[lxc-devel] [lxc/master] conf: fix build without libpcap
dimkr on Github
lxc-bot at linuxcontainers.org
Sun May 14 09:26:08 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170514/8db8c93f/attachment.bin>
-------------- next part --------------
From 684d00d5f61f64390ae5aef711f9d01d7dfd7ca1 Mon Sep 17 00:00:00 2001
From: Dima Krasner <dima at securingsam.com>
Date: Sun, 14 May 2017 12:24:59 +0300
Subject: [PATCH] conf: fix build without libpcap
---
src/lxc/conf.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 35bdb24..76a1901 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -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
More information about the lxc-devel
mailing list