Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 9b15eb8b336b2fe39ffc7fae66a7c121 > files > 8

bind-9.10.3.P4-1.mga5.src.rpm

diff -Naurp bind-9.9.5/bin/named/unix/os.c bind-9.9.5.oden/bin/named/unix/os.c
--- bind-9.9.5/bin/named/unix/os.c	2014-01-27 19:58:24.000000000 +0100
+++ bind-9.9.5.oden/bin/named/unix/os.c	2014-02-02 14:29:11.408346909 +0100
@@ -339,6 +339,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