On my second re-read of this thread I made my spot check and noticed

"
The proper fix is to have dhcpd open the leases file as user dhcpd during start 
and not root and having /var/lib/dhcp/ and the leases file belong to 
dhcpd:dhcpd.
"

which implies (correctly) that dhcpd opens dhcpd.leases before dropping
privileges, and also implies that maybe the ownership shennanigans are
due to dhcpd's failure to open the leases file as the non-privileged
user.

This is done because, as things are currently structured, dhcpd
initiates the failover relationships (which requires data from the
dhcpd.leases file) at the same time as it opens the listening sockets
(which requires privileges in the default configuration).

There may also be other information dependencies that I haven't noticed
yet.

We're evaluating our options at this point.

It will be helpful to know if the forcing of ownership to root:root of
the files and directory are being done as an attempt to cope with
dhcpd's behavior or if that is construed as a feature and the desired
state.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1186662

Title:
  isc-dhcp-server fails to renew lease file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1186662/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to