Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 830cad95204327cb6b235e5abc2ee65f > files > 4

bind-9.9.1.P2-1.mga2.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