Doesn't apply --include to newly installed clicks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click-apparmor (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
On a freshly installed/factory resetted Ubuntu image, I'm trying the following:
- During setup, I disable the initial wizards and other things, and run "phablet-config $ADBOPTS autopilot --dbus-probe enable", which effectively does "aa-clickhook -f --include=
- I install a click package
- I run autopilot on that click package, which fails due to
Jul 3 09:51:50 ubuntu-phablet dbus[2445]: apparmor="DENIED" operation=
Only after I run "aa-clickhook -f --include=
However:
1) This isn't easily discoverable
2) It takes about a minute(!)
3) Running without -f doesn't work, as apparently the click installation already ran the hook, but without the --include
4) Specifying the --include on the initial invocation doesn't seem to be remembered
Possibly this is bug 1238007, but I don't understand that description.
So ideally the initial --include should be remembered, and henceforth installation of new clicks should "just work" through the hooks. Alternatively, if this is somehow too hard, it should be possible to only apply that to newly installed clicks (without -f it just takes a few seconds), instead of having to regenerate all profiles (which takes too long).
Changed in click-apparmor (Ubuntu): | |
assignee: | nobody → Jamie Strandboge (jdstrand) |
Why not just change the ordering and install the click before running "phablet-config $ADBOPTS autopilot --dbus-probe enable"? We could adjust click-apparmor to remember the result, but I specifically went this route because --include-path is not supposed to be used under normal circumstances and I would hate to make it too easy to have the changes be persistent since it opens a security hole.