mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
handle_children: Fix denying of adding a hat
Choosing "Deny" when handle_children() asks about adding a hat should not add that hat, but it should _not_ leave the function because that means all the other log events that were not migrated to prelog yet will be lost. Change "return" to "continue" to fix this.
This commit is contained in:
parent
21c3d57f8d
commit
87f91864be
1 changed files with 1 additions and 1 deletions
|
@ -992,7 +992,7 @@ def handle_children(profile, hat, root):
|
|||
hat = default_hat
|
||||
elif ans == 'CMD_DENY':
|
||||
# As unknown hat is denied no entry for it should be made
|
||||
return None
|
||||
continue
|
||||
|
||||
elif typ == 'capability':
|
||||
# If capability then we (should) have pid, profile, hat, program, mode, capability
|
||||
|
|
Loading…
Add table
Reference in a new issue