aa-cleanprof "An unexpected error occoured!" during the command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
during the command: sudo aa-cleanprof /usr/sbin/mysqld
"An unexpected error occoured!"
Bug-report reads:
###
AppArmorBug
Python 3.7.3: /usr/bin/python3
Sat Feb 15 12:40:23 2020
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/
27 parser = argparse.
28 parser.
29 parser.
30 parser.
31 parser.
32 args = parser.parse_args()
33
34 clean = apparmor.
35
36 clean.cleanprof
clean = <apparmor.
clean.cleanprof_act = <bound method aa_tools.
/usr/lib/
98 program = aaui.UI_
99 else:
100 aaui.UI_Info(_("%s does not exist, please double-check the path.") % program)
101 sys.exit(1)
102
103 if program and apparmor.
104 self.clean_
105
106 else:
107 if '/' not in program:
program = '/usr/sbin/mysqld'
global apparmor = <module 'apparmor.aa' from '/usr/lib/
apparmor.
/usr/lib/
715 # Check the disk for profile
716 prof_path = get_profile_
717 #print(prof_path)
718 if os.path.
719 # Add to cache of profile
720 raise AppArmorBug(
721 # active_
722 # return True
723 return False
724
global AppArmorBug = <class 'apparmor.
AppArmorBug: Reached strange condition in profile_exists(), please open a bugreport!
__cause__ = None
__class__ = <class 'apparmor.
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of AppArmorBug object>
__dict__ = {}
__dir__ = <built-in method __dir__ of AppArmorBug object>
__doc__ = 'This class represents AppArmor exceptions "that should never happen"'
__eq__ = <method-wrapper '__eq__' of AppArmorBug object>
__format__ = <built-in method __format__ of AppArmorBug object>
__ge__ = <method-wrapper '__ge__' of AppArmorBug object>
__getattrib
__gt__ = <method-wrapper '__gt__' of AppArmorBug object>
__hash__ = <method-wrapper '__hash__' of AppArmorBug object>
__init__ = <method-wrapper '__init__' of AppArmorBug object>
__init_
__le__ = <method-wrapper '__le__' of AppArmorBug object>
__lt__ = <method-wrapper '__lt__' of AppArmorBug object>
__module__ = 'apparmor.common'
__ne__ = <method-wrapper '__ne__' of AppArmorBug object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of AppArmorBug object>
__reduce_ex__ = <built-in method __reduce_ex__ of AppArmorBug object>
__repr__ = <method-wrapper '__repr__' of AppArmorBug object>
__setattr__ = <method-wrapper '__setattr__' of AppArmorBug object>
__setstate__ = <built-in method __setstate__ of AppArmorBug object>
__sizeof__ = <built-in method __sizeof__ of AppArmorBug object>
__str__ = <method-wrapper '__str__' of AppArmorBug object>
__subclassh
__suppress_
__traceback__ = <traceback object>
__weakref__ = None
args = ('Reached strange condition in profile_exists(), please open a bugreport!',)
with_traceback = <built-in method with_traceback of AppArmorBug 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/
clean.
File "/usr/lib/
if program and apparmor.
File "/usr/lib/
raise AppArmorBug(
apparmor.
Please consider reporting a bug at https:/
and attach this file.
###
best regards
detlev
Thanks for the bugreport!
The profile that probably triggers this is /etc/apparmor. d/usr.sbin. mysqld
My guess is that this file is empty or contains only comments - at least I can reproduce the problem when using such a file. Can you please confirm that your /etc/apparmor. d/usr.sbin. mysqld indeed only contains comments? (Or simply attach it ;-)