diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index 7a8458def..ab7f6c978 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -105,7 +105,7 @@ original_aa = hasher() extras = hasher() # Inactive profiles from extras ### end our log = [] -pid = dict() +log_pid = dict() # handed over to ReadLog, gets filled in logparser.py. The only case the previous content of this variable _might_(?) be used is aa-genprof (multiple do_logprof_pass() runs) profile_changes = hasher() prelog = hasher() @@ -1857,7 +1857,7 @@ def set_logfile(filename): elif os.path.isdir(logfile): raise AppArmorException(_('%s is a directory. Please specify a file as logfile') % logfile) -def do_logprof_pass(logmark='', passno=0, pid=pid): +def do_logprof_pass(logmark='', passno=0, log_pid=log_pid): # set up variables for this pass # transitions = hasher() global log @@ -1885,7 +1885,7 @@ def do_logprof_pass(logmark='', passno=0, pid=pid): ## if not repo_cfg['repository'].get('enabled', False) or repo_cfg['repository]['enabled'] not in ['yes', 'no']: ## UI_ask_to_enable_repo() - log_reader = apparmor.logparser.ReadLog(pid, logfile, existing_profiles, profile_dir, log) + log_reader = apparmor.logparser.ReadLog(log_pid, logfile, existing_profiles, profile_dir, log) log = log_reader.read_log(logmark) #read_log(logmark)