DHCP Leases File Does Not Get Updated

  • 7020982
  • 16-Jun-2017
  • 05-Nov-2019

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 chown and fowner
  1. Modify /etc/apparmor.d/usr.sbin.dhcpd and add these lines to the bottom of the capability section: 
    • capability chown,
    • capability fowner,
  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.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.