diff options
author | Internet Software Consortium, Inc <@isc.org> | 2007-09-07 14:15:04 -0600 |
---|---|---|
committer | LaMont Jones <lamont@debian.org> | 2007-09-07 14:15:04 -0600 |
commit | 5339b05354d9d665c37aa3a1b197c03b3516d7ee (patch) | |
tree | 1577a05721f2478f1096e12f6c9293862cbb19eb /bin/named/unix/os.c | |
parent | ff3fd69d0fa5cbbf704c2d15c9550294f1873b19 (diff) | |
download | bind9-5339b05354d9d665c37aa3a1b197c03b3516d7ee.tar.gz |
9.2.7b1
Diffstat (limited to 'bin/named/unix/os.c')
-rw-r--r-- | bin/named/unix/os.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/named/unix/os.c b/bin/named/unix/os.c index 648a94c5..264851ff 100644 --- a/bin/named/unix/os.c +++ b/bin/named/unix/os.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2002 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: os.c,v 1.46.2.15 2005/05/20 01:37:08 marka Exp $ */ +/* $Id: os.c,v 1.46.2.17 2006/02/03 23:51:36 marka Exp $ */ #include <config.h> #include <stdarg.h> @@ -493,6 +493,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 |