From: Fabrice Fontaine Date: Fri, 10 Feb 2017 16:17:10 +0000 (+0100) Subject: lxc: enable selinux if package is selected X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25707b2fd63abbf93417d7d878c29d7585914ea9;p=buildroot.git lxc: enable selinux if package is selected Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- 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