semanage: Drop unnecessary import from seobject

sepolgen.module is not used for permissive domains

Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Petr Lautrbach 2023-06-13 13:20:09 +02:00 committed by James Carter
parent 181ae59276
commit 5ad545180e
1 changed files with 0 additions and 5 deletions

View File

@ -504,11 +504,6 @@ class permissiveRecords(semanageRecords):
print(t) print(t)
def add(self, type): 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 name = "permissive_%s" % type
modtxt = "(typepermissive %s)" % type modtxt = "(typepermissive %s)" % type