Merge lp:~jdstrand/click-apparmor/lp1383858 into lp:click-apparmor

Proposed by Jamie Strandboge
Status: Merged
Approved by: Jamie Strandboge
Approved revision: 125
Merged at revision: 125
Proposed branch: lp:~jdstrand/click-apparmor/lp1383858
Merge into: lp:click-apparmor
Diff against target: 30 lines (+10/-0)
2 files modified
aa-clickhook (+3/-0)
debian/changelog (+7/-0)
To merge this branch: bzr merge lp:~jdstrand/click-apparmor/lp1383858
Reviewer Review Type Date Requested Status
Steve Beattie Approve
Review via email: mp+239225@code.launchpad.net

Description of the change

aa-clickhook: disable expr tree simplification when calling the parser since this considerably slows down click policy compiles (LP: #1383858).

Installing click-appamor and python3-apparmor-click show that profiles are being loaded with the added option:

$ ps auxww|grep apparmor_parser
root 29828 0.0 0.2 34808 21520 pts/45 R+ 12:00 0:00 /sbin/apparmor_parser -r --write-cache -O no-expr-simplify --cache-loc=/var/cache/apparmor /var/lib/apparmor/profiles/click_com.ubuntu.developer.jdstrand.applicationlifecycleapp_ApplicationLifecycleApp_0.1

To post a comment you must log in.
Revision history for this message
Steve Beattie (sbeattie) wrote :

This patch looks good to me, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'aa-clickhook'
2--- aa-clickhook 2014-10-07 14:32:06 +0000
3+++ aa-clickhook 2014-10-22 16:05:18 +0000
4@@ -151,8 +151,11 @@
5 warn("AppArmor not available when processing AppArmor hook")
6
7 if is_available:
8+ # LP: #1383858 - expr tree simplification is too slow for click policy
9+ # so disable it for now
10 click.load_profiles(load_profiles,
11 args=['-r', '--write-cache',
12+ '-O', 'no-expr-simplify',
13 '--cache-loc=%s' % apparmor_cache])
14
15 # missing_clicks has the profile filename so we need to find the
16
17=== modified file 'debian/changelog'
18--- debian/changelog 2014-10-07 18:35:58 +0000
19+++ debian/changelog 2014-10-22 16:05:18 +0000
20@@ -1,3 +1,10 @@
21+click-apparmor (0.2.11.1+rtm1) 14.09; urgency=medium
22+
23+ * aa-clickhook: disable expr tree simplification when calling the parser
24+ since this considerably slows down click policy compiles (LP: #1383858)
25+
26+ -- Jamie Strandboge <jamie@ubuntu.com> Wed, 22 Oct 2014 11:39:55 -0400
27+
28 click-apparmor (0.2.11.1) utopic; urgency=medium
29
30 * aa-clickhook: don't remove the lock file so we can properly handle 3 or

Subscribers

People subscribed via source and target branches