Start factoring out the inheritance differences.
authorJeremy Allison <jra@samba.org>
Thu, 6 Nov 2008 09:58:56 +0000 (01:58 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 6 Nov 2008 09:58:56 +0000 (01:58 -0800)
Jeremy.

source3/lib/secdesc.c
source3/modules/vfs_acl_xattr.c
source4/torture/raw/acls.c

index 298730606668b767134fd1fba72e40858b0b9812..94d249564f8b491d0152bcb7b17e29c2c46df569 100644 (file)
@@ -574,8 +574,7 @@ NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx,
        }
        *ppsd = make_sec_desc(ctx,
                        SECURITY_DESCRIPTOR_REVISION_1,
-                       SEC_DESC_SELF_RELATIVE|SEC_DESC_DACL_PRESENT|
-                               SEC_DESC_DACL_DEFAULTED,
+                       SEC_DESC_SELF_RELATIVE|SEC_DESC_DACL_PRESENT,
                        owner_sid,
                        group_sid,
                        NULL,
index c6fb0b5907caf46980c011a03033806714296957..209209d287627a450b658c07fbf25885be07876c 100644 (file)
@@ -326,8 +326,7 @@ static struct security_descriptor *default_file_sd(TALLOC_CTX *mem_ctx,
        }
        return make_sec_desc(mem_ctx,
                        SECURITY_DESCRIPTOR_REVISION_1,
-                       SEC_DESC_SELF_RELATIVE|SEC_DESC_DACL_PRESENT|
-                               SEC_DESC_DACL_DEFAULTED,
+                       SEC_DESC_SELF_RELATIVE|SEC_DESC_DACL_PRESENT,
                        &owner_sid,
                        &group_sid,
                        NULL,
index 862b96ac1730218fd6fd980f21408e5e8a6fc520..d76454d1ff4417fff928b61483a77700b334cfc7 100644 (file)
@@ -1410,7 +1410,9 @@ static bool test_inheritance(struct torture_context *tctx,
 
                if (!(test_flags[i].parent_flags & SEC_ACE_FLAG_OBJECT_INHERIT)) {
                        if (!security_descriptor_equal(q.query_secdesc.out.sd, sd_def)) {
-                               printf("Expected default sd at %d - got:\n", i);
+                               printf("Expected default sd:\n");
+                               NDR_PRINT_DEBUG(security_descriptor, sd_def);
+                               printf("at %d - got:\n", i);
                                NDR_PRINT_DEBUG(security_descriptor, q.query_secdesc.out.sd);
                        }
                        goto check_dir;