diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-03-03 16:14:48 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-03-03 16:14:48 -0500 |
commit | b49942fe96babbc27a225f5cf584d2c27c6b45ff (patch) | |
tree | 541628251b9d9941cfaca59f1ccff1ede695a47c /ipa-python | |
parent | 79557e6bf2202cdff4c940db4f9070fe56247372 (diff) | |
download | freeipa-b49942fe96babbc27a225f5cf584d2c27c6b45ff.tar.gz freeipa-b49942fe96babbc27a225f5cf584d2c27c6b45ff.tar.xz freeipa-b49942fe96babbc27a225f5cf584d2c27c6b45ff.zip |
Close all fds when running another program. This fixes the SELinux AVCs.
Put installation log files into /var/log.
430024
Diffstat (limited to 'ipa-python')
-rw-r--r-- | ipa-python/ipautil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-python/ipautil.py b/ipa-python/ipautil.py index 919d4a6b8..4e065fc4b 100644 --- a/ipa-python/ipautil.py +++ b/ipa-python/ipautil.py @@ -71,7 +71,7 @@ def write_tmp_file(txt): return fd def run(args, stdin=None): - p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) if stdin: stdout,stderr = p.communicate(stdin) else: |