Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 802432 - net-dns/pdns-4.4.1-r1 modfiy /run owner and mod at start
Summary: net-dns/pdns-4.4.1-r1 modfiy /run owner and mod at start
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-16 09:13 UTC by boris
Modified: 2021-07-18 10:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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