$ aa-logprof -f aadenylog
Reading log entries from aadenylog.
Updating AppArmor profiles in /etc/apparmor.d.
reading /usr/lib/chromium-browser/chromium-browser
Traceback (most recent call last):
File "/usr/sbin/aa-logprof", line 52, in <module>
apparmor.do_logprof_pass(logmark)
File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2261, in do_logprof_pass
handle_children('', '', root)
File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 1236, in handle_children
sev_db.load_variables(profile)
File "/usr/lib/python3/dist-packages/apparmor/severity.py", line 181, in load_variables
for line in f_in:
File "/usr/lib/python3.4/codecs.py", line 704, in __next__
return next(self.reader)
File "/usr/lib/python3.4/codecs.py", line 635, in __next__
line = self.readline()
File "/usr/lib/python3.4/codecs.py", line 548, in readline
data = self.read(readsize, firstline=True)
File "/usr/lib/python3.4/codecs.py", line 494, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xab in position 25: invalid start byte
The 'reading' output line is debug output added by me, printing prof_path just before line 180 (which is also why the line numbers may not match exactly). My assumption is that it is supposed to be reading '/etc/apparmor.d/usr.lib.chromium-browser.chromium-browser' instead.
$ aa-logprof -f aadenylog chromium- browser/ chromium- browser aa-logprof" , line 52, in <module> do_logprof_ pass(logmark) python3/ dist-packages/ apparmor/ aa.py", line 2261, in do_logprof_pass children( '', '', root) python3/ dist-packages/ apparmor/ aa.py", line 1236, in handle_children db.load_ variables( profile) python3/ dist-packages/ apparmor/ severity. py", line 181, in load_variables python3. 4/codecs. py", line 704, in __next__ python3. 4/codecs. py", line 635, in __next__ python3. 4/codecs. py", line 548, in readline python3. 4/codecs. py", line 494, in read
Reading log entries from aadenylog.
Updating AppArmor profiles in /etc/apparmor.d.
reading /usr/lib/
Traceback (most recent call last):
File "/usr/sbin/
apparmor.
File "/usr/lib/
handle_
File "/usr/lib/
sev_
File "/usr/lib/
for line in f_in:
File "/usr/lib/
return next(self.reader)
File "/usr/lib/
line = self.readline()
File "/usr/lib/
data = self.read(readsize, firstline=True)
File "/usr/lib/
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xab in position 25: invalid start byte
The 'reading' output line is debug output added by me, printing prof_path just before line 180 (which is also why the line numbers may not match exactly). My assumption is that it is supposed to be reading '/etc/apparmor. d/usr.lib. chromium- browser. chromium- browser' instead.