[pkg-apparmor] Bug#656451: Bug#656451: apparmor-profiles: unowned files after purge (policy 6.8, 10.8)
Felix Geyer
fgeyer at debian.org
Mon Jun 8 22:34:06 UTC 2015
Hi,
On 09.06.2015 00:13, Andreas Beckmann wrote:
> Followup-For: Bug #656451
>
> Looks like the unowned files have returned:
>
> 0m47.7s ERROR: FAIL: Package purging left files on system:
> /etc/apparmor.d/local/bin.ping not owned
> /etc/apparmor.d/local/sbin.klogd not owned
> /etc/apparmor.d/local/sbin.syslog-ng not owned
> [...]
debian/rules calls /usr/bin/dh_apparmor if it exists.
Since it doesn't build-depend on itself this is not the case in a minimal build environment.
It should be possible to call the dh_apparmor from the source tree by setting
DH_AUTOSCRIPTDIR to debian/debhelper/.
More generally is there a good reason why dh_apparmor creates the
/etc/apparmor.d/local/<profile> files in postinst instead of installing
them as regular conffiles?
That way we'd get the file removal handling for free.
Cheers,
Felix
More information about the pkg-apparmor-team
mailing list