summaryrefslogtreecommitdiff
path: root/eclass/selinux-policy-2.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-25 14:56:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-25 14:56:25 +0100
commit5c42677148c717eb9f4673237db807f74740b4e9 (patch)
treeee9f721e91477693459f31721790f2f41839a74c /eclass/selinux-policy-2.eclass
parentc9b5a916efac64df2a39870a92cc6b67116d1b9f (diff)
gentoo auto-resync : 25:08:2024 - 14:56:25
Diffstat (limited to 'eclass/selinux-policy-2.eclass')
-rw-r--r--eclass/selinux-policy-2.eclass12
1 files changed, 4 insertions, 8 deletions
diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass
index ad760673cab1..e7d6cd9a9e5f 100644
--- a/eclass/selinux-policy-2.eclass
+++ b/eclass/selinux-policy-2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Eclass for installing SELinux policy, and optionally
@@ -260,13 +260,9 @@ selinux-policy-2_pkg_postinst() {
local COMMAND
for i in ${POLICY_TYPES}; do
- if [[ "${MODS}" = "unconfined" ]]; then
- case ${i} in
- strict|mcs|mls)
- einfo "Ignoring loading of unconfined module in ${i} module store.";
- continue
- ;;
- esac
+ if [[ "${i}" == "strict" ]] && [[ "${MODS}" = "unconfined" ]]; then
+ einfo "Ignoring loading of unconfined module in strict module store.";
+ continue;
fi
einfo "Inserting the following modules into the $i module store: ${MODS}"