[Bug 793] ulogd -d does not close all fds

bugzilla-daemon at bugzilla.netfilter.org bugzilla-daemon at bugzilla.netfilter.org
Fri Jun 29 18:38:10 CEST 2012


http://bugzilla.netfilter.org/show_bug.cgi?id=793

--- Comment #5 from Pablo Neira Ayuso <pablo at netfilter.org> 2012-06-29 18:38:10 CEST ---
(In reply to comment #4)
> That -- tells start-stop-daemon to pass that flag to /usr/sbin/ulogd rather
> than consume it itself. ps shows that ulogd is being run with -d:
> 
>   root     31873  0.0  0.0  10204   256 ?        Ss   15:03   0:00
> /usr/sbin/ulogd -d
> 
> Again the problem is that fd 3 is not being closed, not that 0/1/2 are not
> being closed. Your fork() is cloning that fd and inappropriately never closing
> it.

OK, then we have to fix ulogd to fork without leaving any fd behind.

I agree that this needs to be fixed but using the brute-force-closing all
descriptors that you propose is not the way to go.

-- 
Configure bugmail: http://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.
You are watching someone on the CC list of the bug.



More information about the netfilter-buglog mailing list