Ignore:
Timestamp:
Nov 12, 2012, 4:35:55 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/smbd/nttrans.c

    r599 r732  
    861861        /* Ensure we have at least one thing set. */
    862862        if ((security_info_sent & (SECINFO_OWNER|SECINFO_GROUP|SECINFO_DACL|SECINFO_SACL)) == 0) {
     863                if (security_info_sent & SECINFO_LABEL) {
     864                        /* Only consider SECINFO_LABEL if no other
     865                           bits are set. Just like W2K3 we don't
     866                           store this. */
     867                        return NT_STATUS_OK;
     868                }
    863869                return NT_STATUS_INVALID_PARAMETER;
    864870        }
     
    18501856        }
    18511857
     1858        if (security_info_wanted & (SECINFO_DACL|SECINFO_OWNER|
     1859                        SECINFO_GROUP|SECINFO_SACL)) {
     1860                /* Don't return SECINFO_LABEL if anything else was
     1861                   requested. See bug #8458. */
     1862                security_info_wanted &= ~SECINFO_LABEL;
     1863        }
     1864
    18521865        if (!lp_nt_acl_support(SNUM(conn))) {
     1866                status = get_null_nt_acl(talloc_tos(), &psd);
     1867        } else if (security_info_wanted & SECINFO_LABEL) {
     1868                /* Like W2K3 return a null object. */
    18531869                status = get_null_nt_acl(talloc_tos(), &psd);
    18541870        } else {
     
    18821898            security_info_wanted & DACL_SECURITY_INFORMATION)
    18831899                psd->type |= SEC_DESC_DACL_PRESENT;
     1900
     1901        if (security_info_wanted & SECINFO_LABEL) {
     1902                /* Like W2K3 return a null object. */
     1903                psd->owner_sid = NULL;
     1904                psd->group_sid = NULL;
     1905                psd->dacl = NULL;
     1906                psd->sacl = NULL;
     1907                psd->type &= ~(SEC_DESC_DACL_PRESENT|SEC_DESC_SACL_PRESENT);
     1908        }
    18841909
    18851910        sd_size = ndr_size_security_descriptor(psd, NULL, 0);
Note: See TracChangeset for help on using the changeset viewer.