summaryrefslogtreecommitdiffstats
path: root/security.py
diff options
context:
space:
mode:
Diffstat (limited to 'security.py')
-rw-r--r--security.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/security.py b/security.py
index bd5c9da32..5e5928e1b 100644
--- a/security.py
+++ b/security.py
@@ -64,12 +64,9 @@ class Security:
args = args + [ "--selinux=%s" %(selinux_states[self.selinux],) ]
try:
- if not flags.test:
- iutil.execWithRedirect("/usr/sbin/lokkit", args,
- root = instPath, stdout = "/dev/null",
- stderr = "/dev/null")
- else:
- log.info("would have run %s" %(args,))
+ iutil.execWithRedirect("/usr/sbin/lokkit", args,
+ root = instPath, stdout = "/dev/null",
+ stderr = "/dev/null")
except RuntimeError, msg:
log.error ("lokkit run failed: %s" %(msg,))
except OSError as e: