}
for (i = 0; i < sa->num_aces; i++) {
+ if (sa->aces[i].flags & SEC_ACE_FLAG_INHERIT_ONLY) {
+ continue;
+ }
se_map_generic(&sa->aces[i].access_mask, mapping);
}
}
}
}
+ if (ace->flags & SEC_ACE_FLAG_INHERIT_ONLY) {
+ creator = &ace->trustee;
+ ptrustee = &ace->trustee;
+ }
+
/* The CREATOR sids are special when inherited */
if (dom_sid_equal(ptrustee, &global_sid_Creator_Owner)) {
creator = &global_sid_Creator_Owner;
}
}
+ security_acl_map_generic(new_dacl, &file_generic_mapping);
+
*ppsd = make_sec_desc(ctx,
SECURITY_DESCRIPTOR_REVISION_1,
SEC_DESC_SELF_RELATIVE|SEC_DESC_DACL_PRESENT|