smb2.streams attributes sub-test fails, returns NT_STATUS_OK when doing GET_FILE_INFO on file opened only for READ_DATA

Christian Ambach ambi at samba.org
Thu Nov 15 14:42:33 MST 2012


On 11/15/2012 09:59 PM, Richard Sharpe wrote:

>> So, the smb2.streams attributes sub-test fails with:
>>
>> failure: attributes [
>> (../source4/torture/smb2/streams.c:1726) Incorrect status NT_STATUS_OK
>> - should be NT_STATUS_ACCESS_DENIED
>> ]
>>
>> The file was opened only for READ_DATA in the access_mask.
>>
>> It seems that smbd_do_qfilepathinfo should include a test to ensure
>> that fsp->access_mask includes FILE_READ_ATTRIBUTES.
>>

During the AD Interop Lab in September, I have written some (incomplete)
patches that you can find in my wip branch that clean up the permission
checking for file and path info calls. Hopefully I can get back to that
topic soon to complete them.

Cheers,
Christian



More information about the samba-technical mailing list