This is the section it created on postrm:
# Automatically added by dh_apparmor
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.d/usr.sbin.ntpd" ] ; then
rm -f "/etc/apparmor.d/disable/usr.sbin.ntpd" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.ntpd" || true
rm -f "/etc/apparmor.d/local/usr.sbin.ntpd" || true
rmdir /etc/apparmor.d/disable 2>/dev/null || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
rmdir /etc/apparmor.d 2>/dev/null || true
fi
# End automatically added section
Which does not reload apparmor or unload the profile indeed.
It only makes sure no customizing stays around.
The apparmor bits are in Debian and I'd prefer to fix it there for ntp.
But OTOH this might be something much more generic - shouldn't dh_apparmor
unload it just as it loads it?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1689585
Title:
ntp doesn't unload its apparmor profile on purge
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1689585/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs