diff options
author | Weisser, Pascal <pascal.weisser.ext@karlstorz.com> | 2024-06-24 11:02:00 +0200 |
---|---|---|
committer | Joe MacDonald <joe.macdonald@siemens.com> | 2024-08-26 08:15:57 -0400 |
commit | 9e9c7b88ee65c1bec2fbcbc6b8b28738facc246a (patch) | |
tree | e6e1e88c9182b7d6dabad9ae6b8a53ac535441fd | |
parent | bef33cdd75a54a9d43a4d809497a66f20c49ef31 (diff) | |
download | meta-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.inc | 6 | ||||
-rw-r--r-- | recipes-core/busybox/files/selinux.cfg | 1 |
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 @@ | |||
1 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
2 | |||
3 | SRC_URI:append = " file://selinux.cfg" | ||
4 | |||
5 | DEPENDS:append = " libselinux" | ||
6 | |||
1 | PTEST_BINDIR = "0" | 7 | PTEST_BINDIR = "0" |
2 | 8 | ||
3 | FILES:${PN} += "${libdir}/${PN}" | 9 | 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 | |||