summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2016-08-05 11:00:59 +0800
committerJason Zaman <perfinion@gentoo.org>2016-08-08 01:05:31 +0800
commit96483a75f39d1da59e2febc33f6629a66de5f4d2 (patch)
treefa76dced0209fa9882f62e16e934801a3869fdba /sys-libs/libselinux
parentdev-python/sepolgen: update to eapi6 (diff)
downloadgentoo-96483a75f39d1da59e2febc33f6629a66de5f4d2.tar.gz
gentoo-96483a75f39d1da59e2febc33f6629a66de5f4d2.tar.bz2
gentoo-96483a75f39d1da59e2febc33f6629a66de5f4d2.zip
sys-libs/libselinux: fix path check for fcontext recompile
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-libs/libselinux')
-rw-r--r--sys-libs/libselinux/libselinux-2.5.ebuild2
-rw-r--r--sys-libs/libselinux/libselinux-9999.ebuild2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys-libs/libselinux/libselinux-2.5.ebuild b/sys-libs/libselinux/libselinux-2.5.ebuild
index 42e7140b1a28..255361bb0d8b 100644
--- a/sys-libs/libselinux/libselinux-2.5.ebuild
+++ b/sys-libs/libselinux/libselinux-2.5.ebuild
@@ -138,7 +138,7 @@ pkg_postinst() {
touch /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 ${EXPRFILE} ]]; then
+ if [[ -f "/etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}" ]]; then
sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE} \
|| die "Failed to recompile contexts"
fi
diff --git a/sys-libs/libselinux/libselinux-9999.ebuild b/sys-libs/libselinux/libselinux-9999.ebuild
index d929bbda1458..1ea4312660bf 100644
--- a/sys-libs/libselinux/libselinux-9999.ebuild
+++ b/sys-libs/libselinux/libselinux-9999.ebuild
@@ -148,7 +148,7 @@ pkg_postinst() {
touch /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 ${EXPRFILE} ]]; then
+ if [[ -f "/etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}" ]]; then
sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE} \
|| die "Failed to recompile contexts"
fi