mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 05:17:59 +00:00
Fix bug in changehat handling code where profiles read in from were set
as changed even though they may not be active profiles.
This commit is contained in:
parent
95769acf38
commit
ecf9f5b5bf
@ -4051,10 +4051,6 @@ sub parse_profile_data {
|
||||
for my $hat (split(/\s+/, $cfg->{required_hats}{$hatglob})) {
|
||||
unless ($profile_data->{$parsed_profile}{$hat}) {
|
||||
$profile_data->{$parsed_profile}{$hat} = { };
|
||||
# if we had to auto-instantiate a hat,
|
||||
# we want to write out
|
||||
# an updated version of the profile
|
||||
$changed{$parsed_profile} = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user