Changeset 746 for vendor/current/source3/lib/secdesc.c
- Timestamp:
- Nov 27, 2012, 4:56:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/lib/secdesc.c
r740 r746 535 535 const struct security_acl *the_acl = parent_ctr->dacl; 536 536 537 if (the_acl == NULL) { 538 return false; 539 } 540 537 541 for (i = 0; i < the_acl->num_aces; i++) { 538 542 const struct security_ace *ace = &the_acl->aces[i]; … … 560 564 struct security_ace *new_ace_list = NULL; 561 565 unsigned int new_ace_list_ndx = 0, i; 566 bool set_inherited_flags = (parent_ctr->type & SEC_DESC_DACL_AUTO_INHERITED); 562 567 563 568 *ppsd = NULL; … … 622 627 /* First add the regular ACE entry. */ 623 628 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); 625 631 626 632 DEBUG(5,("se_create_child_secdesc(): %s:%d/0x%02x/0x%08x" … … 645 651 646 652 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)); 648 655 649 656 DEBUG(5, ("se_create_child_secdesc(): %s:%d/0x%02x/0x%08x " … … 672 679 *ppsd = make_sec_desc(ctx, 673 680 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), 675 683 owner_sid, 676 684 group_sid,
Note:
See TracChangeset
for help on using the changeset viewer.