diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-08 13:04:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-08 13:04:44 +0000 |
commit | 9a969ae9b867e3d42b0428debdefbce51818882a (patch) | |
tree | 03454f8558bfbf8ded876dfcbb44c2c01f7fbb04 /source3/utils | |
parent | Adding upstream version 2:4.20.0+dfsg. (diff) | |
download | samba-9a969ae9b867e3d42b0428debdefbce51818882a.tar.xz samba-9a969ae9b867e3d42b0428debdefbce51818882a.zip |
Adding upstream version 2:4.20.1+dfsg.upstream/2%4.20.1+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcacls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index ff11ba4..e0591ac 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -914,6 +914,10 @@ static uint8_t get_flags_to_propagate(bool is_container, /* Assume we are not propagating the ACE */ newflags &= ~SEC_ACE_FLAG_INHERITED_ACE; + + /* Inherit-only flag is not propagated to children */ + + newflags &= ~SEC_ACE_FLAG_INHERIT_ONLY; /* all children need to have the SEC_ACE_FLAG_INHERITED_ACE set */ if (acl_cntrinherit || acl_objinherit) { /* |