DHCP Leases File Does Not Get Updated

  • 7020982
  • 16-Jun-2017
  • 16-Jun-2017

Environment

Novell Open Enterprise Server 2015 (OES 2015) Linux Support Pack 1
Novell Open Enterprise Server 2015 (OES 2015) Linux
Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 3
Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 2

Situation

DHCP leases file does not get updated
Error: "dhcpd: Can't backup lease database /var/lib/dhcp/db/dhcpd.leases to /var/lib/dhcp/db/dhcpd.leases~: Operation not permitted"
dhpcd creates dhpcd.lease file with ownership of root:root

Resolution

Option 1 - Update the dhpcd apparmor profile to include chmod
  1. Modify /etc/apparmor.d/usr.sbin.dhcpd and add a new line at the top of the capability section with "  capability chown,"
  2. Restart apparmor with "rcapparmor restart"
 
Option 2 - Disable apparmor
  1. Stop apparmor with "rcapparmor stop"
  2. Prevent apparmor from loading on boot with "chkconfig boot.apparmor off"

Cause

The apparmor profile for dhcpd does not allow chmod by default.