refpolicy: Remove build path reference from file_contexts.homedirs

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>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
This commit is contained in:
Sasi Kumar Maddineni 2025-10-21 09:05:11 +05:30 committed by Yi Zhao
parent 7bbd3b12d8
commit 237007feee

View File

@ -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() {