From: aduskett at gmail.com <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/9] package/libselinux: set the config_lsm kernel config option to selinux
Date: Fri, 31 Jul 2020 13:40:52 -0700 [thread overview]
Message-ID: <20200731204100.1171427-2-aduskett@gmail.com> (raw)
In-Reply-To: <20200731204100.1171427-1-aduskett@gmail.com>
From: Adam Duskett <Aduskett@gmail.com>
Currently, the libselinux package sets the CONFIG_DEFAULT_SECURITY_SELINUX
kernel option. However, as of kernels >= 5.1, this option is superseded in
favor of the CONFIG_LSM option, a comma-separated list of LSMs the kernel
should initialize in order.
As the previous behavior of this package sets the kernel's default and only
LSM to initialize to SELinux, it is safe to set this string to just selinux.
If the user wants additional LSM's, they may do so with a custom kernel config.
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
package/libselinux/libselinux.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/libselinux/libselinux.mk b/package/libselinux/libselinux.mk
index f7397141d5..521dbaaba8 100644
--- a/package/libselinux/libselinux.mk
+++ b/package/libselinux/libselinux.mk
@@ -111,6 +111,7 @@ define LIBSELINUX_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY)
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_NETWORK)
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_SELINUX)
+ $(call KCONFIG_SET_OPT,CONFIG_LSM,"selinux")
endef
$(eval $(generic-package))
--
2.26.2
next prev parent reply other threads:[~2020-07-31 20:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-31 20:40 [Buildroot] [PATCH 0/9] package/libselinux: kernel munging fixups aduskett at gmail.com
2020-07-31 20:40 ` aduskett at gmail.com [this message]
2020-07-31 20:40 ` [Buildroot] [PATCH 2/9] package/libselinux: enable kernel selinux support for erofs images aduskett at gmail.com
2020-07-31 20:40 ` [Buildroot] [PATCH 3/9] package/libselinux: enable kernel selinux support for ext2 images aduskett at gmail.com
2020-07-31 20:40 ` [Buildroot] [PATCH 4/9] package/libselinux: enable kernel selinux support for ext3 images aduskett at gmail.com
2020-07-31 20:40 ` [Buildroot] [PATCH 5/9] package/libselinux: enable kernel selinux support for ext4 images aduskett at gmail.com
2020-07-31 20:40 ` [Buildroot] [PATCH 6/9] package/libselinux: enable kernel selinux support for f2fs images aduskett at gmail.com
2020-07-31 20:40 ` [Buildroot] [PATCH 7/9] package/libselinux: enable kernel selinux support for jffs2 images aduskett at gmail.com
2020-07-31 20:40 ` [Buildroot] [PATCH 8/9] package/libselinux: enable kernel selinux support for squashfs images aduskett at gmail.com
2020-07-31 20:41 ` [Buildroot] [PATCH 9/9] package/libselinux: enable kernel selinux support for ubifs images aduskett at gmail.com
2020-09-04 13:48 ` [Buildroot] [PATCH 0/9] package/libselinux: kernel munging fixups Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200731204100.1171427-2-aduskett@gmail.com \
--to=aduskett@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox