diff options
author | Chris Lumens <clumens@redhat.com> | 2006-07-12 13:59:19 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-07-12 13:59:19 +0000 |
commit | d0dec240385acda60a0591fbddd1cbcbdf9c20bc (patch) | |
tree | d5dfc075f489681cf1577170d06ad47d9b803329 /security.py | |
parent | 143669aca0a87f5574924ea5aa6a52450a5311c6 (diff) | |
download | anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.tar.gz anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.tar.xz anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.zip |
Use subprocess instead of our own code. Fix all calls to execWith* so
the command is no longer the first argument, since subprocess doesn't work
that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
Diffstat (limited to 'security.py')
-rw-r--r-- | security.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/security.py b/security.py index fce2b06ed..f11798d77 100644 --- a/security.py +++ b/security.py @@ -50,7 +50,7 @@ class Security: f.write("selinux --%s\n" %(selinux_states[self.selinux],)) def write(self, instPath): - args = [ "/usr/sbin/lokkit", "--quiet", "--nostart" ] + args = [ "--quiet", "--nostart" ] if not selinux_states.has_key(self.selinux): log.error("unknown selinux state: %s" %(self.selinux,)) @@ -60,8 +60,9 @@ class Security: try: if not flags.test: - iutil.execWithRedirect(args[0], args, root = instPath, - stdout = None, stderr = None) + iutil.execWithRedirect("/usr/sbin/lokkit", args, + root = instPath, stdout = None, + stderr = None) else: log.info("would have run %s" %(args,)) except RuntimeError, msg: |