Changeset 732 for branches/samba-3.5.x/source3/smbd/nttrans.c
- Timestamp:
- Nov 12, 2012, 4:35:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/smbd/nttrans.c
r599 r732 861 861 /* Ensure we have at least one thing set. */ 862 862 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 } 863 869 return NT_STATUS_INVALID_PARAMETER; 864 870 } … … 1850 1856 } 1851 1857 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 1852 1865 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. */ 1853 1869 status = get_null_nt_acl(talloc_tos(), &psd); 1854 1870 } else { … … 1882 1898 security_info_wanted & DACL_SECURITY_INFORMATION) 1883 1899 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 } 1884 1909 1885 1910 sd_size = ndr_size_security_descriptor(psd, NULL, 0);
Note:
See TracChangeset
for help on using the changeset viewer.