[Bug 1186662] Re: isc-dhcp-server fails to renew lease file

Rob Traders 1186662 at bugs.launchpad.net
Mon May 30 11:16:15 UTC 2016


I'm fighting since 14.04 LTS with this lease file issue. The fixes
provided in the release of isc-dhcp-server 4.3.3-5ubuntu12 does not fix
the behaviour in 16.04 LTS (xenial) for me. The reason is the
configuration of apparmaor for the binary /usr/sbin/dhcpd, which prevent
the manipulation of the leases file. I tried to fix the capabilities,
but can't find a solution. The settings "capability dac_override" has no
effect.

Temporary I disabled apparmor interception for isc-dhcpd-server by symlinking to disable folder. 
# ln -s /etc/apparmor.d/usr.sbin.dhcpd /etc/apparmor.d/disable/
and restartet the dhcpd. This solves the problem, but it let the dhcpd be unprotected by apparmor.

To fix it finaly, please provide a working
/etc/apparmor.d/usr.sbin.dhcpd with the required policy file.

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

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

Status in isc-dhcp package in Ubuntu:
  Fix Released
Status in isc-dhcp source package in Trusty:
  Triaged

Bug description:
  After raring upgrade, the dhcp server fails to renew lease file when
  it tries to (about every hour).

  The syslog says:
  dhcpd: Can't create new lease file: Permission denied

  It looks like a permission problem, because

  # chown -R dhcpd:dhcpd /var/lib/dhcp

  the above command temporarily solves the issue, until dhcpd is
  restarted: at that time, the ownership of the directory and the lease
  file is set back to root:root.

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



More information about the foundations-bugs mailing list