I patched aa.py file with standard Ubuntu version (2.10) but error still occurs.
sudo aa-logprof -f /var/log/kern.log
Reading log entries from /var/log/kern.log.
Updating AppArmor profiles in /etc/apparmor.d.
Traceback (most recent call last):
File "/usr/sbin/aa-logprof", line 50, in <module>
apparmor.do_logprof_pass(logmark)
File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2176, in do_logprof_pass
log = log_reader.read_log(logmark)
File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 358, in read_log
self.add_event_to_tree(event)
File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 263, in add_event_to_tree
rmask = rmask.replace('c', 'a')
AttributeError: 'NoneType' object has no attribute 'replace'
An unexpected error occoured!
For details, see /tmp/apparmor-bugreport-s93jfr8t.txt
Please consider reporting a bug at https://bugs.launchpad.net/apparmor/
and attach this file.
I send you kern.log file on email.
I noticed that sometimes aa-logprof doesn't see denied messages in logfile.
I patched aa.py file with standard Ubuntu version (2.10) but error still occurs.
sudo aa-logprof -f /var/log/kern.log aa-logprof" , line 50, in <module> do_logprof_ pass(logmark) python3/ dist-packages/ apparmor/ aa.py", line 2176, in do_logprof_pass read_log( logmark) python3/ dist-packages/ apparmor/ logparser. py", line 358, in read_log add_event_ to_tree( event) python3/ dist-packages/ apparmor/ logparser. py", line 263, in add_event_to_tree
Reading log entries from /var/log/kern.log.
Updating AppArmor profiles in /etc/apparmor.d.
Traceback (most recent call last):
File "/usr/sbin/
apparmor.
File "/usr/lib/
log = log_reader.
File "/usr/lib/
self.
File "/usr/lib/
rmask = rmask.replace('c', 'a')
AttributeError: 'NoneType' object has no attribute 'replace'
An unexpected error occoured!
For details, see /tmp/apparmor- bugreport- s93jfr8t. txt /bugs.launchpad .net/apparmor/
Please consider reporting a bug at https:/
and attach this file.
I send you kern.log file on email.
I noticed that sometimes aa-logprof doesn't see denied messages in logfile.