Hi,

Didier Raboud suggested to use dpkg triggers for what dh_apparmor
does, and is happy to give a hand. See the attached message.
Thank you, Didier!

What do the original dh_apparmor authors / Ubuntu folks think?
Any reason Didier missed, that explains why this might not be that
good an idea?

--- Begin Message ---
Package: dh-apparmor
Version: 2.8.0-5
Severity: whishlist
File: /usr/bin/dh_apparmor

Hi,

While updating src:cups to solve #735313, I went and took a look at
dh-apparmor and I gained the convictions that this would be better
implemented as part of a centralized dpkg-trigger (in apparmor probably)
instead of being replicated across all packages shipping apparmor files
(although this is significantly helped with dh-apparmor).

apparmor could have an 'interest /etc/apparmor.d/' triggers file and its
postinst would then do the machinery to create (or remove) the
/etc/apparmor.d/local/* files accordingly.

This could also have the side benefit of only running apparmor_parser
once for all files installed at the same time.

You might be interested in taking a look at cups's postinst to see how
timestamps are kept to avoid useless re-processing, although an initial
trigger processing code could just replicate dh-apparmor's postinst code
for all apparmor profiles found.

I'd be happy to help with this feature, just ask if you need help!

Cheers, OdyX

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'proposed-updates'), 
(500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

dh-apparmor depends on no packages.

Versions of packages dh-apparmor recommends:
ii  apparmor-easyprof  2.8.0-5

dh-apparmor suggests no packages.

-- no debconf information


--- End Message ---

-- 
  intrigeri
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc

Reply via email to