aa-logprof crashes when answering questions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
AttributeError
Python 3.5.2: /usr/bin/python3
Fri Mar 3 02:11:06 2017
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/sbin/
42
43 if profiledir:
44 apparmor.
45 if not os.path.
46 raise apparmor.
47
48 apparmor.
49
50 apparmor.
51
apparmor = <module 'apparmor.aa' from '/usr/lib/
apparmor.
logmark = ''
/usr/lib/
2197 for pid in sorted(
2198 set_process(pid, profile_
2199
2200 collapse_log()
2201
2202 ask_the_questions()
2203
2204 if aaui.UI_mode == 'yast':
2205 # To-Do
2206 pass
global ask_the_questions = <function ask_the_questions>
/usr/lib/
1688 aaui.UI_
1689 if deleted:
1690 aaui.UI_
1691
1692 else:
1693 aa[profile]
1694
1695 aaui.UI_
1696
1697 elif ans == 'CMD_DENY':
global aa = defaultdict(
profile = '/bin/su'
hat = 'DEFAULT'
ruletype = 'ptrace'
].add undefined
rule_obj = <PtraceRule> ptrace trace peer=unconfined,
AttributeError: 'collections.
__cause__ = None
__class__ = <class 'AttributeError'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of AttributeError object>
__dict__ = {}
__dir__ = <built-in method __dir__ of AttributeError object>
__doc__ = 'Attribute not found.'
__eq__ = <method-wrapper '__eq__' of AttributeError object>
__format__ = <built-in method __format__ of AttributeError object>
__ge__ = <method-wrapper '__ge__' of AttributeError object>
__getattrib
__gt__ = <method-wrapper '__gt__' of AttributeError object>
__hash__ = <method-wrapper '__hash__' of AttributeError object>
__init__ = <method-wrapper '__init__' of AttributeError object>
__le__ = <method-wrapper '__le__' of AttributeError object>
__lt__ = <method-wrapper '__lt__' of AttributeError object>
__ne__ = <method-wrapper '__ne__' of AttributeError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of AttributeError object>
__reduce_ex__ = <built-in method __reduce_ex__ of AttributeError object>
__repr__ = <method-wrapper '__repr__' of AttributeError object>
__setattr__ = <method-wrapper '__setattr__' of AttributeError object>
__setstate__ = <built-in method __setstate__ of AttributeError object>
__sizeof__ = <built-in method __sizeof__ of AttributeError object>
__str__ = <method-wrapper '__str__' of AttributeError object>
__subclassh
__suppress_
__traceback__ = <traceback object>
args = ("'collections.
with_traceback = <built-in method with_traceback of AttributeError object>
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/sbin/
apparmor.
File "/usr/lib/
ask_
File "/usr/lib/
aa[
AttributeError: 'collections.
tags: | added: aa-tools |
Looks like the "default" hat in your /bin/su profile was not initialized.
Can you please attach this profile and your /var/log/ audit/audit. log (or whatever logfile aa-logprof reads, it's mentioned in the first lines aa-logprof prints)?
Also, which AppArmor version do you use?