diff options
| author | Sasi Kumar Maddineni <quic_sasikuma@quicinc.com> | 2025-10-21 09:05:11 +0530 |
|---|---|---|
| committer | Yi Zhao <yi.zhao@windriver.com> | 2025-10-23 10:50:29 +0800 |
| commit | 237007feee0dc7a5786f3ac46d56f70b3664f8e2 (patch) | |
| tree | c9368501a70de4fe6a56dc9e558f70b5adcd4996 | |
| parent | 7bbd3b12d89b3ffae248e434c74d4fad3a55a7d7 (diff) | |
| download | meta-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.inc | 2 |
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() { | |||
| 260 | do_install:append() { | 260 | do_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 | ||
| 265 | sysroot_stage_all:append() { | 267 | sysroot_stage_all:append() { |
