[Bug 1543794] Re: isc-dhcp-server fails to start on second & further attempts with 'Can't open /var/lib/dhcp/dhcpd.leases for append'
Launchpad Bug Tracker
1543794 at bugs.launchpad.net
Tue Mar 1 20:24:48 UTC 2016
This bug was fixed in the package isc-dhcp - 4.3.3-5ubuntu9
---------------
isc-dhcp (4.3.3-5ubuntu9) xenial; urgency=medium
* debian/isc-dhcp-server.isc-dhcp-server{,6}.service: adjust permissions
for most recent PARANOIA commits to avoid granting 'capability
dac_override' in the AppArmor profile on second and subsequent starts
(LP: #1543794):
- /var/lib/dhcp is root:dhcpd and 775
- /var/lib/dhcp/dhcpd{,6}.leases is root:dhcpd and 664
- don't chown /run/dhcp-server to dhcpd:dhcpd since the pid file is now
created as root:root and the pid file was not being created before. If
this needs to be reintroduced in the future, use root:dhcpd and 775,
like with the leases file.
-- Jamie Strandboge <jamie at ubuntu.com> Tue, 01 Mar 2016 08:19:43 -0600
** Changed in: isc-dhcp (Ubuntu)
Status: Fix Committed => Fix Released
--
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/1543794
Title:
isc-dhcp-server fails to start on second & further attempts with
'Can't open /var/lib/dhcp/dhcpd.leases for append'
Status in isc-dhcp package in Ubuntu:
Fix Released
Bug description:
During the first start of isc-dhcp-server (using the systemd service
unit), a blank dhcpd.leases file is created (presumably owned by
root:root). dhcpd starts successfully (and then exits due to no
subnet definitions, that's expected).
Attempting to start the service again fails with 'Can't open
/var/lib/dhcp/dhcpd.leases for append' (the dhcpd.leases file
ownership is now dhcpd.dhcpd), and apparmor logs a denial of the
dac_override capability.
Removing the leases file repeats this process (first start works as
expected, future ones do not).
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: isc-dhcp-server 4.3.3-5ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-2.16-generic 4.4.0
Uname: Linux 4.4.0-2-generic x86_64
ApportVersion: 2.19.4-0ubuntu2
Architecture: amd64
Date: Tue Feb 9 20:58:12 2016
InstallationDate: Installed on 2016-02-09 (0 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160206)
ProcEnviron:
LANGUAGE=en_GB:en
TERM=linux
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: isc-dhcp
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1543794/+subscriptions
More information about the foundations-bugs
mailing list