2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-05 00:35:13 +00:00

serialize_profile(): use merged profile names in parameter

... and adjust all callers accordingly.
This commit is contained in:
Christian Boltz
2021-04-11 12:52:29 +02:00
parent 0802f34b35
commit 0e5dca1083
3 changed files with 10 additions and 10 deletions

View File

@@ -275,8 +275,7 @@ def logfile_to_profile(logfile):
if log_is_empty == True:
raise Exception('got empty log for logfile not in log_to_profile_known_empty_log: %s %s' % (logfile, hashlog))
compat_log_dict_aamode = apparmor.aa.merged_to_split(log_dict[aamode])
new_profile = apparmor.aa.serialize_profile(compat_log_dict_aamode[profile], profile, {})
new_profile = apparmor.aa.serialize_profile(log_dict[aamode], profile, {})
return profile, new_profile