Drop root privs happens before the PID file is created which is a hassle
since it isn't always trivial to make a persistent subdirectory in /var/run.

Wondering if the code: SetPriv(userid, groupid);
in nfcapd.c, nfpcapd.c, and sfcapd.c
could be moved after the PID file is created.  It doesn't seem as though
this is problematic (works great for me in nfcapd!) since daemonize() is
the only code that seemed likely to do anything worrisome...and all that
does is fork(), setsid(), and fork().

Thanks, Scott
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Nfdump-discuss mailing list
Nfdump-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfdump-discuss

Reply via email to