summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2018-05-27 19:06:48 +0800
committerJason Zaman <perfinion@gentoo.org>2018-05-27 19:07:55 +0800
commitb0263cde1df273cfa72724a98f7bc3194786ed74 (patch)
treea6abaa09dae6759fbb235ad0925dbaa969afd7d6 /sys-libs/libsemanage/libsemanage-9999.ebuild
parent../base/p.use.mask: Drop obsolete entry (diff)
downloadgentoo-b0263cde1df273cfa72724a98f7bc3194786ed74.tar.gz
gentoo-b0263cde1df273cfa72724a98f7bc3194786ed74.tar.bz2
gentoo-b0263cde1df273cfa72724a98f7bc3194786ed74.zip
sys-libs/libsemanage: fix migration path message check in postinst
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'sys-libs/libsemanage/libsemanage-9999.ebuild')
-rw-r--r--sys-libs/libsemanage/libsemanage-9999.ebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-libs/libsemanage/libsemanage-9999.ebuild b/sys-libs/libsemanage/libsemanage-9999.ebuild
index 0cc1dbbf8b49..f527f9bb25f7 100644
--- a/sys-libs/libsemanage/libsemanage-9999.ebuild
+++ b/sys-libs/libsemanage/libsemanage-9999.ebuild
@@ -116,7 +116,7 @@ multilib_src_install() {
pkg_postinst() {
# Migrate the SELinux semanage configuration store if not done already
local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' "${EROOT}"/etc/selinux/config 2>/dev/null)
- if [ -n "${selinuxtype}" ] && [ ! -d "${EROOT}"/var/lib/selinux/${mcs}/active ] ; then
+ if [ -n "${selinuxtype}" ] && [ ! -d "${EROOT}"/var/lib/selinux/${selinuxtype}/active ] ; then
ewarn "Since the 2.4 SELinux userspace, the policy module store is moved"
ewarn "from /etc/selinux to /var/lib/selinux. The migration will be run now."
ewarn "If there are any issues, it can be done manually by running:"