Closed ghost closed 6 years ago
We should probably create the unix local sockets after dropping privileges, but we need to keep in mind that the DynListener
might be configured to listen on TCP sockets, and obviously these need to be opened before dropping privileges.
Maybe the tcp socket stuff should go away? Is anyone using it?
There seems to be another case for CAP_DAC_OVERRIDE.
situation:
/var/lib/pdns pdns:pdns 750
/var/lib/pdns/sqlite3.db pdns:pdns 640
during start up it seems pdns tries to open the file as root which fails because of the permissions, internally it tries to open it with dac override capability, which fails as it isn't in the capability set.
Adding CAP_DAC_OVERRIDE fixes the start problems.
Originally posted on ML as:
This post
suggests that
I've installed
My config includes
I've set
On exec
it fails. Logs report,
Otoh, if
it's successful
Why are o+w perms required for the socket directory? Shouldn't 'pdns' uid/gid be sufficient?