From b49942fe96babbc27a225f5cf584d2c27c6b45ff Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 3 Mar 2008 16:14:48 -0500 Subject: Close all fds when running another program. This fixes the SELinux AVCs. Put installation log files into /var/log. 430024 --- ipa-python/ipautil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipa-python') diff --git a/ipa-python/ipautil.py b/ipa-python/ipautil.py index 919d4a6b..4e065fc4 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: -- cgit