ports/dns/powerdns-recursor/files/extrapatch-setuid
Kirill Ponomarev baca232dcf Update to 4.1.0
PR:		224233
Submitted by:	maintainer
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D13440
2017-12-11 14:22:38 +00:00

13 lines
1.1 KiB
Text

--- pdns_recursor.cc.orig 2017-12-11 13:13:52.274237000 +0100
+++ pdns_recursor.cc 2017-12-11 13:18:42.339569000 +0100
@@ -3325,8 +3325,8 @@
::arg().set("log-timestamp","Print timestamps in log lines, useful to disable when running with a tool that timestamps stdout already")="yes";
::arg().set("log-common-errors","If we should log rather common errors")="no";
::arg().set("chroot","switch to chroot jail")="";
- ::arg().set("setgid","If set, change group id to this gid for more security")="";
- ::arg().set("setuid","If set, change user id to this uid for more security")="";
+ ::arg().set("setgid","If set, change group id to this gid for more security")="pdns";
+ ::arg().set("setuid","If set, change user id to this uid for more security")="pdns_recursor";
::arg().set("network-timeout", "Wait this number of milliseconds for network i/o")="1500";
::arg().set("threads", "Launch this number of threads")="2";
::arg().set("processes", "Launch this number of processes (EXPERIMENTAL, DO NOT CHANGE)")="1"; // if we un-experimental this, need to fix openssl rand seeding for multiple PIDs!