naemon/naemon — pull request #5 by atj (2013-11-13 13:41:35+00:00)
Title: Fix daemon_dumps_core on Linux when started as root

Under Linux, systems calls that manipulate UIDs and GIDs reset the
process dumpable flag to 0. When Naemon is started as root it drops
privileges using setuid/setgid, preventing core dumps from being
produced regardless of the value of daemon_dumps_core. This patch fixes
that by calling prctl() in drop_privileges().

Signed-off-by: Adam James