summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasi Kumar Maddineni <quic_sasikuma@quicinc.com>2025-10-21 09:05:11 +0530
committerYi Zhao <yi.zhao@windriver.com>2025-10-23 10:50:29 +0800
commit237007feee0dc7a5786f3ac46d56f70b3664f8e2 (patch)
treec9368501a70de4fe6a56dc9e558f70b5adcd4996
parent7bbd3b12d89b3ffae248e434c74d4fad3a55a7d7 (diff)
downloadmeta-selinux-237007feee0dc7a5786f3ac46d56f70b3664f8e2.tar.gz
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>
-rw-r--r--recipes-security/refpolicy/refpolicy_common.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
index 1234370..657e086 100644
--- a/recipes-security/refpolicy/refpolicy_common.inc
+++ b/recipes-security/refpolicy/refpolicy_common.inc
@@ -260,6 +260,8 @@ do_install() {
260do_install:append() { 260do_install:append() {
261 # While building policies on target, Makefile will be searched from SELINUX_DEVEL_PATH 261 # While building policies on target, Makefile will be searched from SELINUX_DEVEL_PATH
262 echo "SELINUX_DEVEL_PATH=${datadir}/selinux/${POLICY_NAME}/include" > ${D}${sysconfdir}/selinux/sepolgen.conf 262 echo "SELINUX_DEVEL_PATH=${datadir}/selinux/${POLICY_NAME}/include" > ${D}${sysconfdir}/selinux/sepolgen.conf
263
264 sed -i -e 's|${D}||' ${D}${sysconfdir}/selinux/${POLICY_NAME}/contexts/files/file_contexts.homedirs
263} 265}
264 266
265sysroot_stage_all:append() { 267sysroot_stage_all:append() {