Skip to contentSkip to conversation

iptables leaks a file descriptor before fork/exec

DISCUSSION Tim Fenn 2 participants 2 messages Nov 2, 2007 – Nov 6, 2007 netfilter

lore
Share & tools
lore
#1 lore raw
Quoted 10 lines · Tim Fenn

As per a discussion I had on the fedora-selinux list
(https://www.redhat.com/archives/fedora-selinux-list/2007-October/msg00033.html),
Dan Walsh suggested filing a bug report in regards to a FD leak noticed when tracking iptables with selinux - it appears a few

fcntl(fd, F_SETFD, FD_CLOEXEC)

calls are missing before fork/exec. See here for the details:

https://bugzilla.redhat.com/show_bug.cgi?id=364331

I can't test this myself since I don't run selinux, could you send a patch for this?