From: Petr Lautrbach <lautrbach@redhat.com>
To: selinux@vger.kernel.org
Cc: Petr Lautrbach <lautrbach@redhat.com>
Subject: [PATCH 3/4] semanage: Drop unnecessary import from seobject
Date: Wed, 17 May 2023 15:49:33 +0200 [thread overview]
Message-ID: <20230517134934.709059-3-lautrbach@redhat.com> (raw)
In-Reply-To: <20230517134934.709059-1-lautrbach@redhat.com>
sepolgen.module is not used for permissive domains
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
---
python/semanage/seobject.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/python/semanage/seobject.py b/python/semanage/seobject.py
index 8a891ca23bca..124bb431464e 100644
--- a/python/semanage/seobject.py
+++ b/python/semanage/seobject.py
@@ -504,11 +504,6 @@ class permissiveRecords(semanageRecords):
print(t)
def add(self, type):
- try:
- import sepolgen.module as module
- except ImportError:
- raise ValueError(_("The sepolgen python module is required to setup permissive domains.\nIn some distributions it is included in the policycoreutils-devel package.\n# yum install policycoreutils-devel\nOr similar for your distro."))
-
name = "permissive_%s" % type
modtxt = "(typepermissive %s)" % type
--
2.40.1
next prev parent reply other threads:[~2023-05-17 13:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-17 13:49 [PATCH 1/4] python: improve format strings for proper localization Petr Lautrbach
2023-05-17 13:49 ` [PATCH 2/4] python/semanage: Drop hard formating from localized strings Petr Lautrbach
2023-06-06 15:20 ` Vit Mojzis
2023-05-17 13:49 ` Petr Lautrbach [this message]
2023-05-17 13:49 ` [PATCH 4/4] python: update python.pot Petr Lautrbach
2023-06-06 15:20 ` [PATCH 1/4] python: improve format strings for proper localization Vit Mojzis
2023-06-12 16:21 ` Petr Lautrbach
2023-06-12 16:21 ` [PATCH v2 1/4] python: improve format strings for proper localization Petr Lautrbach
2023-06-13 9:30 ` Vit Mojzis
2023-06-12 16:21 ` [PATCH v2 2/4] python: Drop hard formating from localized strings Petr Lautrbach
2023-06-12 16:21 ` [PATCH v2 3/4] semanage: Drop unnecessary import from seobject Petr Lautrbach
2023-06-12 16:21 ` [PATCH v2 4/4] python: update python.pot Petr Lautrbach
2023-06-13 9:42 ` Petr Lautrbach
2023-06-13 9:42 ` [PATCH v3 1/4] python: improve format strings for proper localization Petr Lautrbach
2023-06-13 9:42 ` [PATCH v3 2/4] python: Drop hard formating from localized strings Petr Lautrbach
2023-06-13 9:42 ` [PATCH v3 3/4] semanage: Drop unnecessary import from seobject Petr Lautrbach
2023-06-13 9:42 ` [PATCH v3 4/4] python: update python.pot Petr Lautrbach
2023-06-13 11:20 ` Petr Lautrbach
2023-06-13 11:20 ` [PATCH v4 1/4] python: improve format strings for proper localization Petr Lautrbach
2023-06-13 11:20 ` [PATCH v4 2/4] python: Drop hard formating from localized strings Petr Lautrbach
2023-06-13 11:20 ` [PATCH v4 3/4] semanage: Drop unnecessary import from seobject Petr Lautrbach
2023-06-13 11:20 ` [PATCH v4 4/4] python: update python.pot Petr Lautrbach
2023-06-13 12:37 ` Vit Mojzis
2023-06-27 13:55 ` Petr Lautrbach
2023-07-06 13:39 ` James Carter
2023-07-12 17:33 ` James Carter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230517134934.709059-3-lautrbach@redhat.com \
--to=lautrbach@redhat.com \
--cc=selinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox