7020982: DHCP Leases File Does Not Get Updated

This document (7020982) is provided subject to the disclaimer at the end of this document.

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.

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented “AS IS” WITHOUT WARRANTY OF ANY KIND.

Related:

Leave a Reply