Can you please try with this patch? (Apply it to /usr/lib/python3/dist-
packages/apparmor/aa.py)

It should solve the problem, but I gave it only 5 minutes of testing.

Notes and related bugs (with the patch applied):
- aa-complain fails to add the complain flag as long as the quotes exist - 
while reporting success :-/
- the quotes will be removed when saving the profile (for example with 
aa-cleanprof)
- we should test the patch with a profile/binary that contains spaces (the 
quotes must be preserved in that case)
- there are other regexes that handle quotes: RE_PROFILE_ALIAS, 
RE_PROFILE_CHANGE_HAT, RE_PROFILE_HAT_DEF - they probably also need to be 
changed

** Patch added: "quick patch"
   
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1296218/+attachment/4121646/+files/lp1296218.diff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1296218

Title:
  aa-complain crashed with apparmor.common.AppArmorException in
  get_profile_flags(): '/etc/apparmor.d/usr.bin.chromium-browser
  contains no profile'

To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/1296218/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to