I can reproduce this. The znc profile shipped in resolute (apparmor
5.0.2-0ubuntu1~26.04.1) is identical to the one in apparmor-profiles
master. I loaded it on a noble (24.04) machine, changing only the abi to
4.0 and @{exec_path} to /usr/bin/znc so that it loads with noble's
AppArmor 4.0, and started the packaged znc.service:
apparmor="DENIED" operation="open" class="file" profile="znc"
name="/var/lib/znc/configs/znc.conf" requested_mask="wr"
denied_mask="wr" fsuid=110 ouid=110
znc then exits with status 1. ZNC's own upstream unit (znc.service.in)
also uses --datadir=/var/lib/znc, so the fix probably belongs in the
upstream profile rather than in the packaging.
I'm preparing an MR for apparmor-profiles that adds rules for
/var/lib/znc mirroring the existing @{HOME}/.znc ones, without widening
them to all of @{HOME}. I'll link it here.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175533
Title:
ZNC profile incompatible with znc package's systemd unit
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2175533/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs