diff options
Diffstat (limited to 'base/deploy/src/scriptlets/pkihelper.py')
-rw-r--r-- | base/deploy/src/scriptlets/pkihelper.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/base/deploy/src/scriptlets/pkihelper.py b/base/deploy/src/scriptlets/pkihelper.py index ea84f7d0b..48c5f84f0 100644 --- a/base/deploy/src/scriptlets/pkihelper.py +++ b/base/deploy/src/scriptlets/pkihelper.py @@ -36,7 +36,9 @@ from grp import getgrnam from pwd import getpwnam from pwd import getpwuid import zipfile -import seobject +import selinux +if selinux.is_selinux_enabled(): + import seobject # PKI Deployment Imports @@ -760,6 +762,12 @@ class configuration_file: if len(ports) == 0: return + if not bool(selinux.is_selinux_enabled()): + config.pki_log.error( + log.PKIHELPER_SELINUX_DISABLED, + extra=config.PKI_INDENTATION_LEVEL_2) + return + portrecs = seobject.portRecords().get_all() portlist = ports[:] for port in portlist: |