Comment 2 for bug 1435452

Revision history for this message
Steve Beattie (sbeattie) wrote :

Hey Robie,

I'm not particularly clueful when it comes to debhelper, but I don't really see how to accomplish this given what knowledge dh_apparmor has/doesn't have. It needs to know what profile(s) to create a local file for, as well as to reload; this is why the --profile-name argument is required to be passed to dh_apparmor.

I guess one possible way to do it would be to have an expected environment variable to look for, and have the function automatically inserted into the dh sequencer apply the profile based on that, but that wouldn't help the mysql case, as the sequenced dh_apparmor function wouldn't know to only apply the profile to the mysql-server-X.X package. Well, unless we got into complicated environment variables names or representations, which is even less appealing.

I guess another option would be some sort of profile manifest file(s) (not easyprof json manifests, but something akin to the .install, .docs, or .manpages manifests). But I'm also not sure how to do so in a backwards compatible way.

I'll give it some more thought.