]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1979. [port] linux: allow named to drop core after changing
authorMark Andrews <marka@isc.org>
Thu, 2 Feb 2006 23:33:21 +0000 (23:33 +0000)
committerMark Andrews <marka@isc.org>
Thu, 2 Feb 2006 23:33:21 +0000 (23:33 +0000)
                        user ids. [RT #15753]

CHANGES
bin/named/unix/os.c

diff --git a/CHANGES b/CHANGES
index fa1c03371722a42103c9d2f09e7900ad36b9e19f..9358dd184d80cb3a53fa5aef237a18c40bec27a9 100644 (file)
--- 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]
 
index 43907bf1ef35824384c80296ddf712177ded3c23..c0f6ed933436d585c02589dfe732f45ead7dc064 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: os.c,v 1.75 2005/05/20 01:37:03 marka Exp $ */
+/* $Id: os.c,v 1.76 2006/02/02 23:33:21 marka Exp $ */
 
 /*! \file */
 
@@ -499,6 +499,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