diff options
author | Mathieu Tortuyaux <mtortuyaux@microsoft.com> | 2023-07-26 11:01:10 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-07-27 12:19:56 +0100 |
commit | bc998119149241591a70151a55785a8a3a12f893 (patch) | |
tree | 869da02d987b55f878743acbaa02b8d814269e92 /sys-libs/libselinux | |
parent | sys-kernel/genkernel: use dist tarball for libxcrypt in live (diff) | |
download | gentoo-bc998119149241591a70151a55785a8a3a12f893.tar.gz gentoo-bc998119149241591a70151a55785a8a3a12f893.tar.bz2 gentoo-bc998119149241591a70151a55785a8a3a12f893.zip |
sys-libs/libselinux: use ROOT variable in pkg_postinst
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Closes: https://github.com/gentoo/gentoo/pull/32046
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/libselinux')
-rw-r--r-- | sys-libs/libselinux/libselinux-3.5-r1.ebuild (renamed from sys-libs/libselinux/libselinux-3.5.ebuild) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-libs/libselinux/libselinux-3.5.ebuild b/sys-libs/libselinux/libselinux-3.5-r1.ebuild index 67b2797a221c..1ed1db1ec9f2 100644 --- a/sys-libs/libselinux/libselinux-3.5.ebuild +++ b/sys-libs/libselinux/libselinux-3.5-r1.ebuild @@ -145,12 +145,12 @@ pkg_postinst() { # Fix bug 473502 for POLTYPE in ${POLICY_TYPES}; do - mkdir -p /etc/selinux/${POLTYPE}/contexts/files || die - touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local || die + mkdir -p "${ROOT}/etc/selinux/${POLTYPE}/contexts/files" || die + touch "${ROOT}/etc/selinux/${POLTYPE}/contexts/files/file_contexts.local" || die # Fix bug 516608 for EXPRFILE in file_contexts file_contexts.homedirs file_contexts.local ; do - if [[ -f "/etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}" ]]; then - sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE} \ + if [[ -f "${ROOT}/etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}" ]]; then + sefcontext_compile "${ROOT}/etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}" \ || die "Failed to recompile contexts" fi done |