mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
Merge branch 'cboltz-inherit-mr' into 'master'
handle_children(): automatically add m permissions on ix rules See merge request apparmor/apparmor!22 Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
commit
b2df42f55b
@ -1191,8 +1191,8 @@ def handle_children(profile, hat, root):
|
||||
ans = 'INVALID'
|
||||
|
||||
if exec_mode and 'i' in exec_mode:
|
||||
# For inherit we need r
|
||||
file_perm = 'r'
|
||||
# For inherit we need mr
|
||||
file_perm = 'mr'
|
||||
else:
|
||||
if ans == 'CMD_DENY':
|
||||
aa[profile][hat]['file'].add(FileRule(exec_target, None, 'x', FileRule.ALL, owner=False, log_event=True, deny=True))
|
||||
|
Loading…
x
Reference in New Issue
Block a user