mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
utils: fix include prior segments indention
The assignment for setting segments['include'] = True was wrong, it occured inside the 'if not segments['include'] and True in segments.values():' block, whereas it needed to always get set outside of that if test. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
@@ -4242,7 +4242,7 @@ def serialize_profile_from_old_profile(profile_data, name, options):
|
||||
write_prof_data[name]['allow'].pop(segs)
|
||||
if write_prof_data[name]['deny'].get(segs, False):
|
||||
write_prof_data[name]['deny'].pop(segs)
|
||||
segments['include'] = True
|
||||
segments['include'] = True
|
||||
write_prof_data[hat]['include'].pop(include_name)
|
||||
data.append(line)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user