Package: bind9
Version: 1:9.20.31-1
Severity: important

Dear Maintainer,

Following the migration of AppArmor 5.0.x to Debian Testing (forky),
named.service fails to start and enters a restart loop after hitting the
90s systemd startup timeout.

The AppArmor profile for /usr/sbin/named blocks write access (sendmsg) to
the disconnected paths /systemd/notify and /systemd/journal/dev-log:

kernel: audit: type=1400 audit(1796231002.285:566709): apparmor="DENIED" 
operation="sendmsg" class="file" profile="named" 
name="/systemd/journal/dev-log" pid=268481 comm="isc-loop-0002" 
requested_mask="w" denied_mask="w" fsuid=102 ouid=0
kernel: audit: type=1400 audit(1796231007.745:566737): apparmor="DENIED" 
operation="sendmsg" class="file" profile="named" name="/systemd/notify" 
pid=268624 comm="named" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
named[268624]: named: failed to connect to notification socket 
'/run/systemd/notify': permission denied
systemd[1]: named.service: start operation timed out. Terminating.
systemd[1]: Failed to start named.service - BIND Domain Name Server.

This happens on physical machines running Debian Testing (amd64).
Adding the following rules to /etc/apparmor.d/local/usr.sbin.named and
reloading the profile resolves the issue:

  /systemd/notify w,
  /systemd/journal/dev-log w,

Related issue in cups-daemon: #1142057

System information:
- Debian Release: testing (forky)
- Architecture: amd64
- apparmor: 5.0.2-6
- systemd: 262.2-1

Thanks,
Bruno

Reply via email to