command aa-logprof crashes

Bug #1884756 reported by Anurag Vohra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Fix Released
Undecided
Unassigned

Bug Description

Reading log entries from /var/log/syslog.
Updating AppArmor profiles in /etc/apparmor.d.
Traceback (most recent call last):
  File "/usr/sbin/aa-logprof", line 56, in <module>
    apparmor.do_logprof_pass(logmark)
  File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 1816, in do_logprof_pass
    log = log_reader.read_log(logmark)
  File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 384, in read_log
    self.add_event_to_tree(event)
  File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 198, in add_event_to_tree
    e = self.parse_event_for_tree(e)
  File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 246, in parse_event_for_tree
    if profile != 'null-complain-profile' and not self.profile_exists(profile):
  File "/usr/lib/python3/dist-packages/apparmor/logparser.py", line 457, in profile_exists
    raise AppArmorBug('This should never happen, please open a bugreport!')
apparmor.common.AppArmorBug: This should never happen, please open a bugreport!

An unexpected error occoured!

For details, see /tmp/apparmor-bugreport-1lg2osm6.txt
Please consider reporting a bug at https://bugs.launchpad.net/apparmor/
and attach this file.

Revision history for this message
Anurag Vohra (anuragvohra) wrote :
Revision history for this message
Christian Boltz (cboltz) wrote :

This was already fixed upstream in commit 03ea5b82b783cd459978bb4c5a6076286c2ce4fa (2019-01-02).

If you are interested in some technical background, see https://gitlab.com/apparmor/apparmor/-/merge_requests/296 and
https://bugzilla.opensuse.org/show_bug.cgi?id=1120472#c4

Changed in apparmor:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.