diff options
author | Jason Zaman <perfinion@gentoo.org> | 2018-06-09 13:38:34 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2018-06-09 13:58:54 +0800 |
commit | 4db134542437e8caa1c7b98b2d0796aa559c7b31 (patch) | |
tree | 4cb4a6b48a427b12d5c14978ee12c68071bfc133 /sec-policy/selinux-apm/selinux-apm-2.20180114-r3.ebuild | |
parent | dev-ruby/ffi: add 1.9.25 (diff) | |
download | gentoo-4db134542437e8caa1c7b98b2d0796aa559c7b31.tar.gz gentoo-4db134542437e8caa1c7b98b2d0796aa559c7b31.tar.bz2 gentoo-4db134542437e8caa1c7b98b2d0796aa559c7b31.zip |
sec-policy: Release of SELinux policies 2.20180114-r3
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'sec-policy/selinux-apm/selinux-apm-2.20180114-r3.ebuild')
-rw-r--r-- | sec-policy/selinux-apm/selinux-apm-2.20180114-r3.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sec-policy/selinux-apm/selinux-apm-2.20180114-r3.ebuild b/sec-policy/selinux-apm/selinux-apm-2.20180114-r3.ebuild new file mode 100644 index 000000000000..a5f7f30b0e7a --- /dev/null +++ b/sec-policy/selinux-apm/selinux-apm-2.20180114-r3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +IUSE="" +MODS="acpi" + +inherit selinux-policy-2 + +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 +} |