bind9 not starting on Ubuntu 8.04

Using Plesk 8.6 on an Ubuntu 8.04 server ran okay until it became apparent that named wasn’t starting.

The error looked like:

[ 1343.483062] audit(1249551059.618:28): type=1503 operation=”inode_permission” requested_mask=”::r” denied_mask=”::r” name=”/var/named/run-root/etc/localtime” pid=20377 profile=”/usr/sbin/named” namespace=”default”

The following URL helped:

I updated the /etc/apparmor.d/usr.sbin.named file and included: /var/named/run-root/** rw,

Then, restarted:

/etc/init.d/apparmor reload
/etc/init.d/bind9 start

And it was all good.