diff options
Diffstat (limited to 'net-dns/pdns-recursor/files')
-rw-r--r-- | net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch | 13 | ||||
-rw-r--r-- | net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch | 9 |
2 files changed, 22 insertions, 0 deletions
diff --git a/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch b/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch new file mode 100644 index 000000000000..d30ca4286c02 --- /dev/null +++ b/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-chdir.patch @@ -0,0 +1,13 @@ +--- pdns-recursor/pdns_recursor.cc ++++ pdns-recursor/pdns_recursor.cc +@@ -1565,6 +1565,10 @@ + } + } + ++ // this is needed to really get into the chroot. and even without chroot ++ // enabled it's nice to not block the directory we're currently in. ++ chdir("/"); ++ + Utility::dropPrivs(newuid, newgid); + g_fdm->addReadFD(s_rcc.d_fd, handleRCC); // control channel + #endif diff --git a/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch b/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch new file mode 100644 index 000000000000..2bd1690084a3 --- /dev/null +++ b/net-dns/pdns-recursor/files/pdns-recursor-3.1.5-statedir.patch @@ -0,0 +1,9 @@ +--- pdns-recursor/config.h ++++ pdns-recursor/config.h +@@ -1,5 +1,5 @@ + #define SYSCONFDIR "/etc/powerdns/" +-#define LOCALSTATEDIR "/var/run/" ++#define LOCALSTATEDIR "/var/lib/powerdns" + #define VERSION "3.1.5" + #define RECURSOR + #ifndef WIN32 |