Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 583376 Details for
Bug 690138
sys-apps/apparmor-utils - aa-logprof: Please consider reporting a bug
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/tmp/apparmor-bugreport-p0abeeoy.txt
file_690138.txt (text/plain), 10.15 KB, created by
Klaus Ethgen
on 2019-07-18 09:37:24 UTC
(
hide
)
Description:
/tmp/apparmor-bugreport-p0abeeoy.txt
Filename:
MIME Type:
Creator:
Klaus Ethgen
Created:
2019-07-18 09:37:24 UTC
Size:
10.15 KB
patch
obsolete
>AppArmorBug >Python 3.6.5: /usr/bin/python3.6 >Thu Jul 18 10:35:45 2019 > >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/lib/python-exec/python3.6/aa-logprof in <module>() > 48 > 49 if profiledir: > 50 apparmor.profile_dir = apparmor.get_full_path(profiledir) > 51 if not os.path.isdir(apparmor.profile_dir): > 52 raise apparmor.AppArmorException("%s is not a directory."%profiledir) > 53 > 54 apparmor.loadincludes() > 55 > 56 apparmor.do_logprof_pass(logmark) > 57 >apparmor = <module 'apparmor.aa' from '/usr/lib64/python3.6/site-packages/apparmor/aa.py'> >apparmor.do_logprof_pass = <function do_logprof_pass> >logmark = '' > > /usr/lib64/python3.6/site-packages/apparmor/aa.py in do_logprof_pass(logmark='', passno=0, log_pid={13828: [['capability', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', 'setgid', ''], ['path', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', {'r'}, '/etc/exim/exim.conf', ''], ['path', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', {'r'}, '/etc/host.conf', ''], ['path', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', {'r'}, '/etc/resolv.conf', ''], ['path', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', {'r'}, '/etc/nsswitch.conf', ''], ['path', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', {'r'}, '/etc/hosts', ''], ['path', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', {'r'}, '/etc/hosts', ''], ['path', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', {'r'}, '/etc/passwd', ''], ['path', 13828, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', {'r'}, '/etc/group', '']], 13829: [['capability', 13829, '/usr/sbin/exim', '/usr/sbin/exim', 'HINT', 'PERMITTING', 'setgid', '']], 14763: [['capability', 14763, 'dhclient-script', '/bin/ip', 'HINT', 'PERMITTING', 'net_admin', '']], 16585: [['path', 16585, 'dhclient-script', '/bin/ip', 'HINT', 'PERMITTING', {'::r', 'r'}, '/var/lib/dhcp/dhclient.leases', '']], 16589: [['capability', 16589, 'dhclient-script', '/bin/ip', 'HINT', 'PERMITTING', 'net_admin', '']], 32514: [['path', 32514, '/etc/cron.daily/logrotate', '/etc/cron.daily/logrotate', 'HINT', 'PERMITTING', {'r'}, '/run/ulogd.pid', '']], 32515: [['path', 32515, '/etc/cron.daily/logrotate', '/etc/cron.daily/logrotate', 'HINT', 'PERMITTING', {'r'}, '/proc/sys/kernel/osrelease', ''], ['capability', 32515, '/etc/cron.daily/logrotate', '/etc/cron.daily/logrotate', 'HINT', 'PERMITTING', 'kill', ''], ['signal', 32515, '/etc/cron.daily/logrotate', '/etc/cron.daily/logrotate', 'HINT', 'PERMITTING', 'send', 'hup', 'unconfined']]}) > 1811 ## repo_cfg = read_config('repository.conf') > 1812 ## if not repo_cfg['repository'].get('enabled', False) or repo_cfg['repository]['enabled'] not in ['yes', 'no']: > 1813 ## UI_ask_to_enable_repo() > 1814 > 1815 log_reader = apparmor.logparser.ReadLog(log_pid, logfile, active_profiles, profile_dir) > 1816 log = log_reader.read_log(logmark) > 1817 #read_log(logmark) > 1818 > 1819 for root in log: > 1820 handle_children('', '', root) >log undefined >log_reader = <apparmor.logparser.ReadLog object> >log_reader.read_log = <bound method ReadLog.read_log of <apparmor.logparser.ReadLog object>> >logmark = '' > > /usr/lib64/python3.6/site-packages/apparmor/logparser.py in read_log(self=<apparmor.logparser.ReadLog object>, logmark='') > 379 > 380 event = self.parse_log_record(line) > 381 #print(event) > 382 if event: > 383 try: > 384 self.add_event_to_tree(event) > 385 except AppArmorException as e: > 386 ex_msg = ('%(msg)s\n\nThis error was caused by the log line:\n%(logline)s' % > 387 {'msg': e.value, 'logline': line}) > 388 # when py3 only: Drop the original AppArmorException by passing None as the parent exception >self = <apparmor.logparser.ReadLog object> >self.add_event_to_tree = <bound method ReadLog.add_event_to_tree of <apparmor.logparser.ReadLog object>> >event = {'aamode': 'PERMITTING', 'active_hat': None, 'attr': None, 'denied_mask': 'r', 'error_code': 0, 'family': None, 'fsuid': 0, 'info': None, 'magic_token': 0, 'name': '/etc/openvpn/chua.conf', ...} > > /usr/lib64/python3.6/site-packages/apparmor/logparser.py in add_event_to_tree(self=<apparmor.logparser.ReadLog object>, e={'aamode': 'PERMITTING', 'active_hat': None, 'attr': None, 'denied_mask': 'r', 'error_code': 0, 'family': None, 'fsuid': 0, 'info': None, 'magic_token': 0, 'name': '/etc/openvpn/chua.conf', ...}) > 193 self.pid[loc_pid].append([type, loc_pid] + event) > 194 #print("\n\npid",self.pid) > 195 #print("log",self.log) > 196 > 197 def add_event_to_tree(self, e): > 198 e = self.parse_event_for_tree(e) > 199 if e is not None: > 200 (pid, parent, mode, details) = e > 201 self.add_to_tree(pid, parent, mode, details) > 202 >e = {'aamode': 'PERMITTING', 'active_hat': None, 'attr': None, 'denied_mask': 'r', 'error_code': 0, 'family': None, 'fsuid': 0, 'info': None, 'magic_token': 0, 'name': '/etc/openvpn/chua.conf', ...} >self = <apparmor.logparser.ReadLog object> >self.parse_event_for_tree = <bound method ReadLog.parse_event_for_tree of <apparmor.logparser.ReadLog object>> > > /usr/lib64/python3.6/site-packages/apparmor/logparser.py in parse_event_for_tree(self=<apparmor.logparser.ReadLog object>, e={'aamode': 'PERMITTING', 'active_hat': None, 'attr': None, 'denied_mask': 'r', 'error_code': 0, 'family': None, 'fsuid': 0, 'info': None, 'magic_token': 0, 'name': '/etc/openvpn/chua.conf', ...}) > 241 hat = profile > 242 > 243 # prog is no longer passed around consistently > 244 prog = 'HINT' > 245 > 246 if profile != 'null-complain-profile' and not self.profile_exists(profile): > 247 return None > 248 if e['operation'] == 'exec': > 249 # convert rmask and dmask to mode arrays > 250 e['denied_mask'], e['name2'] = log_str_to_mode(e['profile'], e['denied_mask'], e['name2']) >profile = '/usr/sbin/openvpn' >self = <apparmor.logparser.ReadLog object> >self.profile_exists = <bound method ReadLog.profile_exists of <apparmor.logparser.ReadLog object>> > > /usr/lib64/python3.6/site-packages/apparmor/logparser.py in profile_exists(self=<apparmor.logparser.ReadLog object>, program='/usr/sbin/openvpn') > 452 # Check the disk for profile > 453 prof_path = self.get_profile_filename(program) > 454 #print(prof_path) > 455 if os.path.isfile(prof_path): > 456 # Add to cache of profile > 457 raise AppArmorBug('This should never happen, please open a bugreport!') > 458 # self.active_profiles[program] = prof_path > 459 # return True > 460 return False > 461 >global AppArmorBug = <class 'apparmor.common.AppArmorBug'> >AppArmorBug: This should never happen, please open a bugreport! > __cause__ = None > __class__ = <class 'apparmor.common.AppArmorBug'> > __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> > __getattribute__ = <method-wrapper '__getattribute__' of AppArmorBug object> > __gt__ = <method-wrapper '__gt__' of AppArmorBug object> > __hash__ = <method-wrapper '__hash__' of AppArmorBug object> > __init__ = <method-wrapper '__init__' of AppArmorBug object> > __init_subclass__ = <built-in method __init_subclass__ of type object> > __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> > __subclasshook__ = <built-in method __subclasshook__ of type object> > __suppress_context__ = False > __traceback__ = <traceback object> > __weakref__ = None > args = ('This should never happen, 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/lib/python-exec/python3.6/aa-logprof", line 56, in <module> > apparmor.do_logprof_pass(logmark) > File "/usr/lib64/python3.6/site-packages/apparmor/aa.py", line 1816, in do_logprof_pass > log = log_reader.read_log(logmark) > File "/usr/lib64/python3.6/site-packages/apparmor/logparser.py", line 384, in read_log > self.add_event_to_tree(event) > File "/usr/lib64/python3.6/site-packages/apparmor/logparser.py", line 198, in add_event_to_tree > e = self.parse_event_for_tree(e) > File "/usr/lib64/python3.6/site-packages/apparmor/logparser.py", line 246, in parse_event_for_tree > if profile != 'null-complain-profile' and not self.profile_exists(profile): > File "/usr/lib64/python3.6/site-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! > > >Please consider reporting a bug at https://bugs.launchpad.net/apparmor/ >and attach this file.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 690138
: 583376 |
583378