mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3:utils: Fix Inherit-Only flag being automatically propagated to children
Inherit-only flag applies only to the container it was set to and it shouldn't be automatically propagated to children. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15636 Signed-off-by: Anna Popova <popova.anna235@gmail.com> Reviewed-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Apr 29 10:56:48 UTC 2024 on atb-devel-224
This commit is contained in:
parent
eba2bfde34
commit
80159018e4
@ -1,6 +0,0 @@
|
||||
^samba.tests.blackbox.smbcacls_propagate_inhertance.samba.tests.blackbox.smbcacls_propagate_inhertance.InheritanceSmbCaclsTests.test_simple_iocioi_add
|
||||
^samba.tests.blackbox.smbcacls_propagate_inhertance.samba.tests.blackbox.smbcacls_propagate_inhertance.InheritanceSmbCaclsTests.test_simple_ioci_add
|
||||
^samba.tests.blackbox.smbcacls_dfs_propagate_inherit\(DFS-msdfs-root\).samba.tests.blackbox.smbcacls_propagate_inhertance.InheritanceSmbCaclsTests.test_simple_iocioi_add
|
||||
^samba.tests.blackbox.smbcacls_dfs_propagate_inherit\(DFS-msdfs-root\).samba.tests.blackbox.smbcacls_propagate_inhertance.InheritanceSmbCaclsTests.test_simple_ioci_add
|
||||
^samba.tests.blackbox.smbcacls_dfs_propagate_inherit\(DFS-msdfs-root\).samba.tests.blackbox.smbcacls_dfs_propagate_inherit.DfsInheritanceSmbCaclsTests.test_simple_iocioi_add
|
||||
^samba.tests.blackbox.smbcacls_dfs_propagate_inherit\(DFS-msdfs-root\).samba.tests.blackbox.smbcacls_dfs_propagate_inherit.DfsInheritanceSmbCaclsTests.test_simple_ioci_add
|
@ -921,6 +921,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) {
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user