diff options
author | jvdias <jvdias@fedoraproject.org> | 2006-04-04 20:54:16 +0000 |
---|---|---|
committer | jvdias <jvdias@fedoraproject.org> | 2006-04-04 20:54:16 +0000 |
commit | 313b9086cbc4b0e69cd219b736c295201753de52 (patch) | |
tree | df855e03ad670f5da2cf7fee381f0c173fc71216 | |
parent | 38b940426239c6bf1c8efe2ba2abe0c9069d719b (diff) | |
download | bind-313b9086cbc4b0e69cd219b736c295201753de52.tar.gz bind-313b9086cbc4b0e69cd219b736c295201753de52.tar.xz bind-313b9086cbc4b0e69cd219b736c295201753de52.zip |
allow named ability to generate core dumps after setuid (upstream bug
#15753)
-rw-r--r-- | bind-9.3.2-prctl_set_dumpable.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bind-9.3.2-prctl_set_dumpable.patch b/bind-9.3.2-prctl_set_dumpable.patch new file mode 100644 index 0000000..1ce6033 --- /dev/null +++ b/bind-9.3.2-prctl_set_dumpable.patch @@ -0,0 +1,13 @@ +--- 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 |