Ignore:
Timestamp:
Nov 27, 2012, 4:56:06 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated vendor to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/lib/secdesc.c

    r740 r746  
    535535        const struct security_acl *the_acl = parent_ctr->dacl;
    536536
     537        if (the_acl == NULL) {
     538                return false;
     539        }
     540
    537541        for (i = 0; i < the_acl->num_aces; i++) {
    538542                const struct security_ace *ace = &the_acl->aces[i];
     
    560564        struct security_ace *new_ace_list = NULL;
    561565        unsigned int new_ace_list_ndx = 0, i;
     566        bool set_inherited_flags = (parent_ctr->type & SEC_DESC_DACL_AUTO_INHERITED);
    562567
    563568        *ppsd = NULL;
     
    622627                        /* First add the regular ACE entry. */
    623628                        init_sec_ace(new_ace, ptrustee, ace->type,
    624                                 ace->access_mask, 0);
     629                                ace->access_mask,
     630                                set_inherited_flags ? SEC_ACE_FLAG_INHERITED_ACE : 0);
    625631
    626632                        DEBUG(5,("se_create_child_secdesc(): %s:%d/0x%02x/0x%08x"
     
    645651
    646652                init_sec_ace(new_ace, ptrustee, ace->type,
    647                              ace->access_mask, new_flags);
     653                                ace->access_mask, new_flags |
     654                                (set_inherited_flags ? SEC_ACE_FLAG_INHERITED_ACE : 0));
    648655
    649656                DEBUG(5, ("se_create_child_secdesc(): %s:%d/0x%02x/0x%08x "
     
    672679        *ppsd = make_sec_desc(ctx,
    673680                        SECURITY_DESCRIPTOR_REVISION_1,
    674                         SEC_DESC_SELF_RELATIVE|SEC_DESC_DACL_PRESENT,
     681                        SEC_DESC_SELF_RELATIVE|SEC_DESC_DACL_PRESENT|
     682                        (set_inherited_flags ? SEC_DESC_DACL_AUTO_INHERITED : 0),
    675683                        owner_sid,
    676684                        group_sid,
Note: See TracChangeset for help on using the changeset viewer.