summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeisser, Pascal <pascal.weisser.ext@karlstorz.com>2024-06-24 11:02:00 +0200
committerJoe MacDonald <joe.macdonald@siemens.com>2024-08-26 08:15:57 -0400
commit9e9c7b88ee65c1bec2fbcbc6b8b28738facc246a (patch)
treee6e1e88c9182b7d6dabad9ae6b8a53ac535441fd
parentbef33cdd75a54a9d43a4d809497a66f20c49ef31 (diff)
downloadmeta-selinux-9e9c7b88ee65c1bec2fbcbc6b8b28738facc246a.tar.gz
Add SELinux specific configuration snippet for busybox.
This patch adds a SELinux specific configuration snippet for busybox to enable SELinux support in busybox out of the box. This is needed to enable SELinux specific command line options for certain commands like ps -Z. Signed-off-by: "Weisser, Pascal" <pascal.weisser.ext@karlstorz.com> Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
-rw-r--r--recipes-core/busybox/busybox_selinux.inc6
-rw-r--r--recipes-core/busybox/files/selinux.cfg1
2 files changed, 7 insertions, 0 deletions
diff --git a/recipes-core/busybox/busybox_selinux.inc b/recipes-core/busybox/busybox_selinux.inc
index 740980f..ade30cf 100644
--- a/recipes-core/busybox/busybox_selinux.inc
+++ b/recipes-core/busybox/busybox_selinux.inc
@@ -1,3 +1,9 @@
1FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2
3SRC_URI:append = " file://selinux.cfg"
4
5DEPENDS:append = " libselinux"
6
1PTEST_BINDIR = "0" 7PTEST_BINDIR = "0"
2 8
3FILES:${PN} += "${libdir}/${PN}" 9FILES:${PN} += "${libdir}/${PN}"
diff --git a/recipes-core/busybox/files/selinux.cfg b/recipes-core/busybox/files/selinux.cfg
new file mode 100644
index 0000000..00aeb51
--- /dev/null
+++ b/recipes-core/busybox/files/selinux.cfg
@@ -0,0 +1 @@
CONFIG_SELINUX=y