[Buildroot] [git commit] lxc: enable selinux if package is selected

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Mar 1 17:04:21 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=25707b2fd63abbf93417d7d878c29d7585914ea9
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/lxc/lxc.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/lxc/lxc.mk b/package/lxc/lxc.mk
index 455814b..b79197f 100644
--- a/package/lxc/lxc.mk
+++ b/package/lxc/lxc.mk
@@ -29,6 +29,13 @@ else
 LXC_CONF_OPTS += --disable-seccomp
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+LXC_CONF_OPTS += --enable-selinux
+LXC_DEPENDENCIES += libselinux
+else
+LXC_CONF_OPTS += --disable-selinux
+endif
+
 ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y)
 LXC_CONF_OPTS += --enable-lua
 LXC_DEPENDENCIES += luainterpreter


More information about the buildroot mailing list