diff options
-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 |