Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 21245b8c3ca7851f7bd1995fb07169b3 > files > 12

bind-9.3.3-9.0.1.el5.src.rpm

--- bind-9.3.2/bin/named/unix/os.c.prctl_set_dumpable	2005-05-19 21:37:19.000000000 -0400
+++ bind-9.3.2/bin/named/unix/os.c	2006-04-04 16:43:11.000000000 -0400
@@ -252,6 +252,10 @@
 	caps |= (1 << CAP_SYS_RESOURCE);
 
 	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_SYS_PRCTL_H