2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 06:55:30 +00:00

1979. [port] linux: allow named to drop core after changing

user ids. [RT #15753]
This commit is contained in:
Mark Andrews
2006-02-02 23:33:21 +00:00
parent e44ce99432
commit d53520b78d
2 changed files with 11 additions and 1 deletions

View File

@@ -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(). 1978. [port] Handle systems which have a broken recvmsg().
[RT #15742] [RT #15742]

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * 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 */ /*! \file */
@@ -499,6 +499,13 @@ ns_os_changeuser(void) {
#if defined(HAVE_LINUX_CAPABILITY_H) && !defined(HAVE_LINUXTHREADS) #if defined(HAVE_LINUX_CAPABILITY_H) && !defined(HAVE_LINUXTHREADS)
linux_minprivs(); linux_minprivs();
#endif #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 void