diff --git a/CHANGES b/CHANGES index 10915b16a2..a92440ff8b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1979. [port] linux: allow named to drop core after changing + user ids. [RT #15753] + 1978. [port] Handle systems which have a broken recvmsg(). [RT #15742] diff --git a/bin/named/unix/os.c b/bin/named/unix/os.c index f306f14622..b6531c92c5 100644 --- a/bin/named/unix/os.c +++ b/bin/named/unix/os.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: os.c,v 1.46.2.4.8.22 2005/05/20 01:37:19 marka Exp $ */ +/* $Id: os.c,v 1.46.2.4.8.23 2006/02/02 23:37:57 marka Exp $ */ #include #include @@ -497,6 +497,13 @@ ns_os_changeuser(void) { #if defined(HAVE_LINUX_CAPABILITY_H) && !defined(HAVE_LINUXTHREADS) linux_minprivs(); #endif +#if defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_DUMPABLE) + /* + * Restore the ability of named to drop core after the setuid() + * call has disabled it. + */ + prctl(PR_SET_DUMPABLE,1,0,0,0); +#endif } void