mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sec-policy/selinux-apm: remove old apm module from store
"apm" module got renamed to "acpi", must remove apm first the contexts are okay even tho the modules are not replaced in the same command (doesnt become unlabeled_t) Package-Manager: Portage-2.3.5, Repoman-2.3.1
This commit is contained in:
@@ -7,8 +7,29 @@ MODS="acpi"
|
||||
|
||||
inherit selinux-policy-2
|
||||
|
||||
DESCRIPTION="SELinux policy for apm"
|
||||
DESCRIPTION="SELinux policy for acpi"
|
||||
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
|
||||
fi
|
||||
|
||||
pkg_postinst() {
|
||||
# "apm" module got renamed to "acpi", must remove apm first
|
||||
# the contexts are okay even tho the modules are not
|
||||
# replaced in the same command (doesnt become unlabeled_t)
|
||||
for i in ${POLICY_TYPES}; do
|
||||
if semodule -s "${i}" -l | grep apm >/dev/null 2>&1; then
|
||||
semodule -s "${i}" -r apm
|
||||
fi
|
||||
done
|
||||
selinux-policy-2_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
for i in ${POLICY_TYPES}; do
|
||||
if semodule -s "${i}" -l | grep apm >/dev/null 2>&1; then
|
||||
semodule -s "${i}" -r apm
|
||||
fi
|
||||
done
|
||||
selinux-policy-2_pkg_postrm
|
||||
}
|
||||
|
||||
@@ -7,8 +7,29 @@ MODS="acpi"
|
||||
|
||||
inherit selinux-policy-2
|
||||
|
||||
DESCRIPTION="SELinux policy for apm"
|
||||
DESCRIPTION="SELinux policy for acpi"
|
||||
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
|
||||
fi
|
||||
|
||||
pkg_postinst() {
|
||||
# "apm" module got renamed to "acpi", must remove apm first
|
||||
# the contexts are okay even tho the modules are not
|
||||
# replaced in the same command (doesnt become unlabeled_t)
|
||||
for i in ${POLICY_TYPES}; do
|
||||
if semodule -s "${i}" -l | grep apm >/dev/null 2>&1; then
|
||||
semodule -s "${i}" -r apm
|
||||
fi
|
||||
done
|
||||
selinux-policy-2_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
for i in ${POLICY_TYPES}; do
|
||||
if semodule -s "${i}" -l | grep apm >/dev/null 2>&1; then
|
||||
semodule -s "${i}" -r apm
|
||||
fi
|
||||
done
|
||||
selinux-policy-2_pkg_postrm
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user