Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > da5215faf967679904623e7047107846 > files > 5

bind-9.8.3P2-1.mga1.src.rpm

--- bin/named/unix/os.c	2008-11-14 06:08:48.000000000 +0100
+++ bin/named/unix/os.c.oden	2008-12-03 12:41:55.000000000 +0100
@@ -330,6 +330,10 @@ linux_minprivs(void) {
 
 	linux_setcaps(caps);
 
+	/* allow us to continue to be able to generate coredumps after setuid:
+	 */
+	prctl(PR_SET_DUMPABLE,1,0,0,0);
+
 #ifdef HAVE_LIBCAP
 	FREE_CAP;
 #endif