aboutsummaryrefslogtreecommitdiff
path: root/linux/linux.mk
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2020-03-12 11:09:08 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-03-14 15:36:44 +0100
commit326777c82fb15d8ed9b99a14b9484973d60d8785 (patch)
tree87838eccce54fdd381c51a6756ecacbb0f3d130e /linux/linux.mk
parentbacd7f82bc5d4657c113c0339361e149040606b1 (diff)
downloadbuildroot-326777c82fb15d8ed9b99a14b9484973d60d8785.tar.gz
buildroot-326777c82fb15d8ed9b99a14b9484973d60d8785.tar.bz2
linux: add automatic selinux config selection
Enabling SELinux support in the kernel requires several options, many of which are in different areas. These options are as follows: - CONFIG_AUDIT - CONFIG_DEFAULT_SECURITY_SELINUX - CONFIG_INET - CONFIG_NET - CONFIG_SECURITY - CONFIG_SECURITY_NETWORK - CONFIG_SECURITY_SELINUX As such, if a user selects the libselinux package, it is much easier to select these options for them, much like we already do with other packages such as systemd or iptables. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'linux/linux.mk')
-rw-r--r--linux/linux.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/linux.mk b/linux/linux.mk
index 4b60f33ff3..f8c34c3dca 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -406,6 +406,14 @@ define LINUX_KCONFIG_FIXUP_CMDS
$(call KCONFIG_ENABLE_OPT,CONFIG_FB,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO,$(@D)/.config)
$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO_LINUX_CLUT224,$(@D)/.config))
+ $(if $(BR2_PACKAGE_LIBSELINUX),
+ $(call KCONFIG_ENABLE_OPT,CONFIG_AUDIT,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_DEFAULT_SECURITY_SELINUX,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_INET,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_NET,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_NETWORK,$(@D)/.config)
+ $(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_SELINUX,$(@D)/.config))
endef
ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y)