aa-logprof: apparmor.common.AppArmorBug: Passed unknown <class 'NoneType'> object to PtraceRule: None

Bug #1719195 reported by Vincas Dargis on 2017-09-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Undecided
Christian Boltz
2.11
Undecided
Christian Boltz

Bug Description

I was developing wine-staging profiles and running `aa-logprof` (2.11.0-10 on Debian Testing) I got this crash:

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 1814, in do_logprof_pass
    collapse_log()
  File "/usr/lib/python3/dist-packages/apparmor/aa.py", line 2090, in collapse_log
    ptrace_event = PtraceRule(access, peer, log_event=True)
  File "/usr/lib/python3/dist-packages/apparmor/rule/ptrace.py", line 63, in __init__
    self.access, self.all_access, unknown_items = check_and_split_list(access, access_keywords, PtraceRule.ALL, 'PtraceRule', 'access')
  File "/usr/lib/python3/dist-packages/apparmor/rule/__init__.py", line 500, in check_and_split_list
    {'type': type(lst), 'classname': classname, 'unknown_object': str(lst)})
apparmor.common.AppArmorBug: Passed unknown <class 'NoneType'> object to PtraceRule: None

Audit log attached.

Vincas Dargis (talkless) wrote :
Christian Boltz (cboltz) wrote :

This is already fixed upstream :-) (trunk r3661, 2.11 branch r3660)

timestamp: Sat 2017-05-20 01:05:33 +0200
message:
  Ignore ptrace log events without denied_mask

  This fixes a crash in the tools.

Changed in apparmor:
status: New → Fix Committed
milestone: none → 2.11.1
assignee: nobody → Christian Boltz (cboltz)
milestone: 2.11.1 → 2.12
Vincas Dargis (talkless) wrote :

OK thanks, I'll nudge Debian maintainer then :)

Vincas Dargis:
> OK thanks, I'll nudge Debian maintainer then :)

Well, a new upstream release would be welcome: we're already applying no less than 18 patches cherry-picked from upstream bzr or from fixes submitted for review upstream already.

Vincas Dargis (talkless) wrote :

Sorry for misunderstanding on my aprt, I thought there is already a release.

So we have to double-nudge AppArmor maintainers then :) .

Changed in apparmor:
status: Fix Committed → Fix Released
Christian Boltz (cboltz) on 2017-10-19
Changed in apparmor:
status: Fix Released → Fix Committed
Christian Boltz (cboltz) on 2018-04-22
Changed in apparmor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments