mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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:
parent
21b6e70865
commit
a5d38d3dc9
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue