diff options
author | Jeremy Allison <jra@samba.org> | 2008-10-30 13:51:28 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-10-30 13:51:28 -0700 |
commit | 782f309df35cba41c9e5b65db242b961bacbbf87 (patch) | |
tree | 36dea23e22c9779f8ef5b854d204b1e9b0858504 /source3/lib | |
parent | a9fed0955c5e332120fc6f778065551f7dd7ea86 (diff) | |
download | samba-782f309df35cba41c9e5b65db242b961bacbbf87.tar.gz samba-782f309df35cba41c9e5b65db242b961bacbbf87.tar.bz2 samba-782f309df35cba41c9e5b65db242b961bacbbf87.zip |
Inherit Windows ACLs on a new directory.
Jeremy.
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/secdesc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/secdesc.c b/source3/lib/secdesc.c index 6afc165c0f..1da2b3ec93 100644 --- a/source3/lib/secdesc.c +++ b/source3/lib/secdesc.c @@ -527,9 +527,9 @@ NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx, if (creator && container && (new_flags & SEC_ACE_FLAG_CONTAINER_INHERIT)) { - /* First add the regular ACE entry with flags = 0. */ + /* First add the regular ACE entry. */ init_sec_ace(new_ace, ptrustee, ace->type, - ace->access_mask, 0); + ace->access_mask, SEC_ACE_FLAG_INHERITED_ACE); DEBUG(5,("se_create_child_secdesc(): %s:%d/0x%02x/0x%08x" " inherited as %s:%d/0x%02x/0x%08x\n", @@ -549,7 +549,7 @@ NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx, } init_sec_ace(new_ace, ptrustee, ace->type, - ace->access_mask, new_flags); + ace->access_mask, new_flags | SEC_ACE_FLAG_INHERITED_ACE); DEBUG(5, ("se_create_child_secdesc(): %s:%d/0x%02x/0x%08x " " inherited as %s:%d/0x%02x/0x%08x\n", |