troglobit / pimd

PIM-SM/SSM multicast routing for UNIX and Linux
http://troglobit.com/projects/pimd/
BSD 3-Clause "New" or "Revised" License
194 stars 86 forks source link

Add support for dropping privileges on Linux/*BSD #115

Open troglobit opened 6 years ago

troglobit commented 6 years ago

Could be a bit tricky to add since we need to handle SIGHUP, and similar, where the privileged routing socket is closed and reopened. Maybe a lesser privileged child process inheriting the socket could be used for this?

Proposed command line syntax/usage:

 -p USER[:GROUP]  Drop privs after init