Close all fds when running another program. This fixes the SELinux AVCs.
Put installation log files into /var/log. 430024
This commit is contained in:
1 parent
79557e6bf2
commit
b49942fe96
3 files changed
+4
-3
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user