]> git.ipfire.org Git - thirdparty/iptables.git/commit
src: mark newly opened fds as FD_CLOEXEC (close on exec)
authorMaciej Żenczykowski <maze@google.com>
Wed, 21 Mar 2012 00:52:00 +0000 (00:52 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 Mar 2012 10:24:30 +0000 (11:24 +0100)
commitc0aa38e22e8a09fcb1898ad0e042eaf6314d2d42
tree6c4df30f78f66235cb610b018f4dbf8a5cee1621
parent61b8f7ecb64b3b6fe04d2a6ad9598f66e42ceea8
src: mark newly opened fds as FD_CLOEXEC (close on exec)

By default, Unix-like systems leak file descriptors after fork/exec
call. I think this seem to result in SELinux spotting a strange AVC
log messages according to what I can find on the web.

Fedora 18 iptables source includes this change.

Maciej says:
"iptables does potentially fork/exec modprobe to load modules.
That can cause a selinux 'domain'/'role'/whatever-it-is-called crossing.
You can do automated inspection of what gets carried across such
privilege changes and any unexpected open file descriptors flag
problems, patches like this cut down on the noise."

Signed-off-by: Maciej enczykowski <maze@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_set.h
libiptc/libiptc.c