Symlinking (or hardlinking) usr.bin.firefox to usr.lib.firefox.firefox
does not work for me.

$ sudo aa-complain /usr/lib/firefox/firefox

Setting /usr/lib/firefox/firefox to complain mode.
Traceback (most recent call last):
  File "/usr/sbin/aa-complain", line 30, in <module>
    tool.cmd_complain()
  File "/usr/lib/python3/dist-packages/apparmor/tools.py", line 178, in 
cmd_complain
    apparmor.set_complain(profile, program)
  File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 267, in 
set_complain
    change_profile_flags(filename, program, 'complain', True)
  File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 606, in 
change_profile_flags
    old_flags = get_profile_flags(filename, program)
  File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 603, in 
get_profile_flags
    raise AppArmorException(_('%s contains no profile') % filename)
apparmor.common.AppArmorException: '/etc/apparmor.d/usr.lib.firefox.firefox 
contains no profile'


The culprit seems to be the regex trying to match /usr/lib/firefox/firefox but 
not /usr/lib/firefox/firefox.sh:

/usr/lib/firefox/firefox{,*[^s][^h]} {

Changing this to

/usr/lib/firefox/firefox {

allows apparmor to load the profile.


AppArmor Version: 2.8.95~2430-0ubuntu5

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

Title:
  Wrong filename of firefox' apparmor profile

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1364305/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to