mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 15:25:27 +00:00
make 'prelog' non-global
It's only used by two functions: - handle_hashlog() - writes to prelog, and now returns it - collapse_log() - reads prelog, and now gets it as parameter
This commit is contained in:
@@ -239,9 +239,9 @@ def logfile_to_profile(logfile):
|
||||
|
||||
apparmor.aa.ask_exec(hashlog)
|
||||
apparmor.aa.ask_addhat(hashlog)
|
||||
apparmor.aa.handle_hashlog(hashlog)
|
||||
prelog = apparmor.aa.handle_hashlog(hashlog)
|
||||
|
||||
log_dict = apparmor.aa.collapse_log()
|
||||
log_dict = apparmor.aa.collapse_log(prelog)
|
||||
|
||||
if profile != hat:
|
||||
# log event for a child profile means log_dict only contains the child profile
|
||||
|
Reference in New Issue
Block a user