diff options
author | Andreas Beckmann <anbe@debian.org> | 2014-05-23 19:32:23 +0200 |
---|---|---|
committer | Andreas Beckmann <anbe@debian.org> | 2014-05-23 19:32:23 +0200 |
commit | ac7cef1dc3559ac1a4b4197b50c05be5d08cacce (patch) | |
tree | 73864347e587dc98d9de25be9dec5736479d445d /debian | |
parent | 9fbc40c13f4c379ddc81aacc105350d621967445 (diff) | |
download | sendmail-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')
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | debian/patches/8.14/8.14.4/close_on_exec.patch | 13 | ||||
-rw-r--r-- | debian/patches/8.14/8.14.4/series | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 9dd0505..5fdb06f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,8 @@ sendmail (8.14.4-6) UNRELEASED; urgency=medium * Apply manpage corrections from Ubuntu. (Closes: #747551) * libmilter-assert.patch: Fix an incorrect assertion in libmilter, cherry-picked from sendmail 8.14.7. (LP: #1299571) + * close_on_exec.patch: Properly set the close-on-exec flag for file + descriptors before executing mailers, cherry-picked from sendmail 8.14.9. * libmilter: Convert into a 'Multi-Arch: same' package. * libmilter: Add symbols control file. * libmilter-dev: Move static libraries from /usr/lib/libmilter to /usr/lib. 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); diff --git a/debian/patches/8.14/8.14.4/series b/debian/patches/8.14/8.14.4/series index 7c05e53..6de1aa7 100644 --- a/debian/patches/8.14/8.14.4/series +++ b/debian/patches/8.14/8.14.4/series @@ -21,3 +21,4 @@ ssl_op_no_tlsv1_x.patch install_static_libs.patch shared_libmilter.patch libmilter-assert.patch +close_on_exec.patch |