mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 15:25:27 +00: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user