Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 802432

Summary: net-dns/pdns-4.4.1-r1 modfiy /run owner and mod at start
Product: Gentoo Linux Reporter: boris <funtoo>
Component: Current packagesAssignee: Sven Wegener <swegener>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description boris 2021-07-16 09:13:41 UTC
pdns changes the permissions when starting from the /run folder.
This has serious consequences e.g. for sockets residing inside /run.
The sockets can no longer be used and everything that has a socket under /run is permission denied.

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/pdns start
2. ls -la /run
3. 
Actual Results:  
kepler /home/user # ls -la / | grep run                                                                                 
drwxr-xr-x  18 root root      880 16. Jul 09:47 run                                                                        
                                                                                                                           
kepler /home/user # /etc/init.d/pdns start                                                                                 
 * //run: correcting mode                                                                                                  
 * //run: correcting owner                                                                                                 
 * Starting PowerDNS Authoritative Server ...                                                                              
                                                                                                                           
kepler /home/user # ls -la / | grep run                                                                                    
drwxr-x---  18 pdns pdns      920 16. Jul 11:11 run

Expected Results:  
/run is not touched and others had the x and r bit
Comment 1 Sven Wegener gentoo-dev 2021-07-17 20:18:29 UTC
What are your chroot and socket-dir option in pdns.conf?
Comment 2 boris 2021-07-18 10:19:19 UTC
All my settings in /etc/powerdns/pdns.conf:

allow-axfr-ips=xxxxxx
also-notify=xxxxx
any-to-tcp=yes
entropy-source=/dev/urandom

launch=gmysql
gmysql-host=localhost
gmysql-dbname=powerdns
gmysql-user=xxxxxxx
gmysql-password=xxxxx

local-address=xxxxxx
log-dns-details=yes
log-timestamp=yes
loglevel=7
master=yes

server-id=ns.servername.com
setgid=pdns
setuid=pdns

socket-dir=/run
version-string=anonymous