| Message ID | 20251021033511.1791045-1-quic_sasikuma@quicinc.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-selinux,PATCH/v4] refpolicy: Remove build path reference from file_contexts.homedirs | expand |
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc index cf32723..964906b 100644 --- a/recipes-security/refpolicy/refpolicy_common.inc +++ b/recipes-security/refpolicy/refpolicy_common.inc @@ -260,6 +260,8 @@ do_install() { do_install:append() { # While building policies on target, Makefile will be searched from SELINUX_DEVEL_PATH echo "SELINUX_DEVEL_PATH=${datadir}/selinux/${POLICY_NAME}/include" > ${D}${sysconfdir}/selinux/sepolgen.conf + + sed -i -e 's|${D}||' ${D}${sysconfdir}/selinux/${POLICY_NAME}/contexts/files/file_contexts.homedirs } sysroot_stage_all:append() {
filecontexts.homedirs is getting populated with reference to TMPDIR path and yocto's QA check is flagging it. To avoid this, removing the line that contains TMPDIR path from filecontexts.homedirs. Signed-off-by: Sasi Kumar Maddineni <quic_sasikuma@quicinc.com> --- recipes-security/refpolicy/refpolicy_common.inc | 2 ++ 1 file changed, 2 insertions(+)