diff mbox series

[3/4] semanage: Drop unnecessary import from seobject

Message ID 20230517134934.709059-3-lautrbach@redhat.com (mailing list archive)
State Superseded
Delegated to: Petr Lautrbach
Headers show
Series [1/4] python: improve format strings for proper localization | expand

Commit Message

Petr Lautrbach May 17, 2023, 1:49 p.m. UTC
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 mbox series


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):
     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