I patched aa-.py (trunk version) but aa-logprof still crashes.
python3 ./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 "./aa-logprof", line 50, in <module>
apparmor.do_logprof_pass(logmark)
File "/usr/local/apparmor/utils/apparmor/aa.py", line 2176, in do_logprof_pass
log = log_reader.read_log(logmark)
File "/usr/local/apparmor/utils/apparmor/logparser.py", line 371, in read_log
self.add_event_to_tree(event)
File "/usr/local/apparmor/utils/apparmor/logparser.py", line 184, in
add_event_to_tree
e = self.parse_event_for_tree(e)
File "/usr/local/apparmor/utils/apparmor/logparser.py", line 276, in
parse_event_for_tree
rmask = rmask.replace('c', 'a')
AttributeError: 'NoneType' object has no attribute 'replace'
An unexpected error occoured!
For details, see /tmp/apparmor-bugreport-tlzb_vya.txt
Please consider reporting a bug at https://bugs.launchpad.net/apparmor/
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1528139
Title:
serialize_profile_from_old_profile() crash if file contains multiple
profiles
To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/1528139/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs