Fix set GPT security descriptor to match windows' behaviour.
authorWilco Baan Hofman <wilco@baanhofman.nl>
Wed, 19 May 2010 16:58:54 +0000 (18:58 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 20 Jun 2010 15:19:12 +0000 (17:19 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/lib/policy/gp_filesys.c

index f44ab0dd5428c92865aec569ac04cf162f8b91b9..f6183bd8e1d94bae9e427fe86ab465080ad0bf0b 100644 (file)
@@ -452,7 +452,7 @@ NTSTATUS gp_set_gpt_security_descriptor(struct gp_context *gp_ctx, struct gp_obj
        /* Set the security descriptor on the directory */
        fileinfo.generic.level = RAW_FILEINFO_SEC_DESC;
        fileinfo.set_secdesc.in.file.fnum = io.ntcreatex.out.file.fnum;
-       fileinfo.set_secdesc.in.secinfo_flags = SECINFO_OWNER | SECINFO_GROUP | SECINFO_SACL | SECINFO_DACL;
+       fileinfo.set_secdesc.in.secinfo_flags = SECINFO_PROTECTED_DACL | SECINFO_OWNER | SECINFO_GROUP | SECINFO_DACL;
        fileinfo.set_secdesc.in.sd = sd;
        status = smb_raw_setfileinfo(gp_ctx->cli->tree, &fileinfo);
        if (!NT_STATUS_IS_OK(status)) {