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

Richard Sharpe realrichardsharpe at gmail.com
Thu Nov 15 13:59:35 MST 2012


On Thu, Nov 15, 2012 at 11:30 AM, Richard Sharpe
<realrichardsharpe at gmail.com> wrote:
> Hi,
>
> 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.
>
> I am testing that now.

My initial change is not sufficient, because it spawns failures ...


-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list