From 9e9c7b88ee65c1bec2fbcbc6b8b28738facc246a Mon Sep 17 00:00:00 2001 From: "Weisser, Pascal" Date: Mon, 24 Jun 2024 11:02:00 +0200 Subject: [PATCH] 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" Signed-off-by: Joe MacDonald --- recipes-core/busybox/busybox_selinux.inc | 6 ++++++ recipes-core/busybox/files/selinux.cfg | 1 + 2 files changed, 7 insertions(+) create mode 100644 recipes-core/busybox/files/selinux.cfg 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 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +SRC_URI:append = " file://selinux.cfg" + +DEPENDS:append = " libselinux" + PTEST_BINDIR = "0" FILES:${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