summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Enedino Hernandez Samaniego <alejandro@enedino.org>2024-07-19 13:16:16 -0600
committerJoe MacDonald <joe.macdonald@siemens.com>2024-07-24 10:50:23 -0400
commit9b392cb0fd8f621257dd61da72f888753e5e93b3 (patch)
treefbf991c70e91915f09b14210f822389864db62a8
parent5a92976a8614e1eb639988ecef4cce890418d4e8 (diff)
downloadmeta-selinux-9b392cb0fd8f621257dd61da72f888753e5e93b3.tar.gz
policycoreutils: fix packaging for sestatus binary
sestatus is provided as ${base_sbindir}/sestatus which is currently packaged into PN-sestatus, however, this is only a symlink to the binary located in ${bindir}/sestatus. This causes that when runtime dependencies are calculated, bitbake properly detects a dependency from policycoreutils-sestatus to the main policycoreutils package. Hence the policycoreutils-sestatus package has no usability by itself, this has several implications, but one of them means that it recursively pulls all runtime dependencies, making policycoreutils-sestatus require everything that the main policycoreutils package RDEPENDS on, including python3. By correctly splitting these packages, an image that RDEPENDS only on policycoreutils-sestatus decreases its size by about ~13MB. Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
-rw-r--r--recipes-security/selinux/policycoreutils_3.7.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-security/selinux/policycoreutils_3.7.bb b/recipes-security/selinux/policycoreutils_3.7.bb
index 2871de0..9e59c4b 100644
--- a/recipes-security/selinux/policycoreutils_3.7.bb
+++ b/recipes-security/selinux/policycoreutils_3.7.bb
@@ -92,6 +92,7 @@ FILES:${PN}-secon = "${bindir}/secon"
92FILES:${PN}-semodule = "${base_sbindir}/semodule" 92FILES:${PN}-semodule = "${base_sbindir}/semodule"
93FILES:${PN}-hll = "${prefix}/libexec/selinux/hll/*" 93FILES:${PN}-hll = "${prefix}/libexec/selinux/hll/*"
94FILES:${PN}-sestatus = "\ 94FILES:${PN}-sestatus = "\
95 ${bindir}/sestatus \
95 ${base_sbindir}/sestatus \ 96 ${base_sbindir}/sestatus \
96 ${sysconfdir}/sestatus.conf \ 97 ${sysconfdir}/sestatus.conf \
97" 98"