I'm also experiencing this, but not with the chromium-browser profile. I'm still trying to learn AppArmor, and am trying to create a profile for Spotify. I have attached the profile. I get this output:
$ sudo aa-complain /opt/spotify/spotify-client/spotify
Setting /opt/spotify/spotify-client/spotify 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/opt.spotify.spotify-client.spotify contains no profile'
As far as I can see the profile's filename and the name of the binary in the profile match.
I'm also experiencing this, but not with the chromium-browser profile. I'm still trying to learn AppArmor, and am trying to create a profile for Spotify. I have attached the profile. I get this output:
$ sudo aa-complain /opt/spotify/ spotify- client/ spotify spotify- client/ spotify to complain mode. aa-complain" , line 30, in <module> cmd_complain( ) python3/ dist-packages/ apparmor/ tools.py" , line 178, in cmd_complain set_complain( profile, program) python3/ dist-packages/ apparmor/ aa.py", line 267, in set_complain profile_ flags(filename, program, 'complain', True) python3/ dist-packages/ apparmor/ aa.py", line 606, in change_ profile_ flags flags(filename, program) python3/ dist-packages/ apparmor/ aa.py", line 603, in get_profile_flags on(_('% s contains no profile') % filename) common. AppArmorExcepti on: '/etc/apparmor. d/opt.spotify. spotify- client. spotify contains no profile'
Setting /opt/spotify/
Traceback (most recent call last):
File "/usr/sbin/
tool.
File "/usr/lib/
apparmor.
File "/usr/lib/
change_
File "/usr/lib/
old_flags = get_profile_
File "/usr/lib/
raise AppArmorExcepti
apparmor.
As far as I can see the profile's filename and the name of the binary in the profile match.