aboutsummaryrefslogtreecommitdiff
path: root/package/lxc
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fabrice.fontaine@orange.com>2017-02-10 17:17:10 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-11 16:45:38 +0100
commit25707b2fd63abbf93417d7d878c29d7585914ea9 (patch)
tree714cee85c088c5cb2d3e55f52c98ad18ce5d097a /package/lxc
parent03f9ce54630c3fdc7b3f227ef24f3c6ddea95051 (diff)
downloadbuildroot-25707b2fd63abbf93417d7d878c29d7585914ea9.tar.gz
buildroot-25707b2fd63abbf93417d7d878c29d7585914ea9.tar.bz2
lxc: enable selinux if package is selected
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lxc')
-rw-r--r--package/lxc/lxc.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/lxc/lxc.mk b/package/lxc/lxc.mk
index 455814b9c9..b79197fa57 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