summaryrefslogtreecommitdiff
path: root/debian/patches/8.14/8.14.4/close_on_exec.patch
diff options
context:
space:
mode:
authorAndreas Beckmann <anbe@debian.org>2014-05-23 19:32:23 +0200
committerAndreas Beckmann <anbe@debian.org>2014-05-23 19:32:23 +0200
commitac7cef1dc3559ac1a4b4197b50c05be5d08cacce (patch)
tree73864347e587dc98d9de25be9dec5736479d445d /debian/patches/8.14/8.14.4/close_on_exec.patch
parent9fbc40c13f4c379ddc81aacc105350d621967445 (diff)
downloadsendmail-ac7cef1dc3559ac1a4b4197b50c05be5d08cacce.tar.gz
properly set the close-on-exec flag before executing mailers
backported from 8.14.9: SECURITY: Properly set the close-on-exec flag for file descriptors (except stdin, stdout, and stderr) before executing mailers.
Diffstat (limited to 'debian/patches/8.14/8.14.4/close_on_exec.patch')
-rw-r--r--debian/patches/8.14/8.14.4/close_on_exec.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches/8.14/8.14.4/close_on_exec.patch b/debian/patches/8.14/8.14.4/close_on_exec.patch
new file mode 100644
index 0000000..f19a984
--- /dev/null
+++ b/debian/patches/8.14/8.14.4/close_on_exec.patch
@@ -0,0 +1,13 @@
+--- sendmail-8.14.8/sendmail/conf.c 2014-01-08 18:03:14.000000000 +0100
++++ sendmail-8.14.9/sendmail/conf.c 2014-05-20 19:24:39.000000000 +0200
+@@ -5309,8 +5309,8 @@
+ */
+
+ void
+-sm_close_on_exec(highest, lowest)
+- int highest, lowest;
++sm_close_on_exec(lowest, highest)
++ int lowest, highest;
+ {
+ #if HASFDWALK
+ (void) fdwalk(closefd_walk, &lowest);