[PATCH 5/5] Close file descriptors other than stdin, stdout, stderr on exec. (#1016467)
David Lehman
dlehman at redhat.com
Mon Oct 14 17:44:23 UTC 2013
---
blivet/util.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/blivet/util.py b/blivet/util.py
index 9d038cd..a9efa34 100644
--- a/blivet/util.py
+++ b/blivet/util.py
@@ -36,6 +36,7 @@ def _run_program(argv, root='/', stdin=None, env_prune=None):
stdin=stdin,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
+ close_fds=True,
preexec_fn=chroot, cwd=root, env=env)
out = proc.communicate()[0]
--
1.8.1.4
More information about the anaconda-patches
mailing list