dhcpd cannot READ /var/run/dhcpd.pid because of bad apparmor config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-dhcp (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Low
|
Stéphane Graber | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This bug is present in the latest versions of isc-dhcp-server available in precise and in natty.
This bugs prevents dhcpd from detecting the presence of an already running dhcpd, the result is multiple copies of dhcpd running when there should only ever be one ( or none ).
apparmor="DENIED" operation="open" parent=31445 profile=
Apparmor config for dhcpd
/{,var/
dhcpd needs access to read the pid file in server/dhcpd.c
if ((i = open (path_dhcpd_pid, O_RDONLY)) >= 0) {
}
Testcase:
1) Follow the testcase from bug 985417
2) Once you're done with that testcase, restart isc-dhcp-server and isc-dhcp-server6 (if doing IPv6 testing)
3) Check "dmesg" for any apparmor error
Related branches
tags: | added: natty precise |
description: | updated |
Changed in isc-dhcp (Ubuntu): | |
status: | New → Fix Released |
Changed in isc-dhcp (Ubuntu Precise): | |
status: | New → In Progress |
assignee: | nobody → Stéphane Graber (stgraber) |
description: | updated |
Changed in isc-dhcp (Ubuntu Precise): | |
importance: | Undecided → Low |
The attachment "apparmor permission fix for dhcpd" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]