| Message ID | 20261116025620.2558594-4-chenqi_hycx@cetc.com.cn |
|---|---|
| State | New |
| Headers | show |
| Series | meta-selinux: fix systemd 262 denials and ensure SELinux tests work on every variant | expand |
Hi, Qi >@ > The `bare` make target is to "delete all remaining generated files, > including modules.conf, and booleans.conf."[1] >@ > If we don't do 'make bare' at the start of do_compile, legacy build > artifacts such as booleans.conf, generated_definitions.conf, etc. > will remain there, making the building results unexpected. This may be the correct thing to do but would likely break my current workflow. In a private layer, I keep a "booleans.conf" that I apply via do_configure:prepend. Thanks! Clayton Casciato
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc index 4fa2ae5..e6dac8e 100644 --- a/recipes-security/refpolicy/refpolicy_common.inc +++ b/recipes-security/refpolicy/refpolicy_common.inc @@ -194,6 +194,7 @@ set_policy_booleans() { } do_compile() { + oe_runmake bare if [ -f "${WORKDIR}/modules.conf" ] ; then cp -f ${WORKDIR}/modules.conf ${S}/policy/modules.conf fi