[RFC] SMB2 Compound related chain handling when generation of FileId has failed
slow at samba.org
Wed May 13 17:17:04 UTC 2020
Am 5/13/20 um 6:31 PM schrieb Anubhav Rakshit via samba-technical:
> We have a scenario where an application sends a Compound Related chain
> consisting of:
> SMB2_CREATE failed with NT_STATUS_ACCESS_DENIED and subsequent
> requests all fail. In Samba they return NT_STATUS_FILE_CLOSED.
> When I tried the same against a Win2k12 server, I noticed that all the
> failed requests of the chain would return NT_STATUS_ACCESS_DENIED.
> I believe this behaviour is also mentioned in the [MS-SMB2] Specs
> 126.96.36.199.7.2: Handling Compounded Related Requests
> “When the current operation requires a FileId and the previous
> operation either contains or generates a FileId, if the previous
> operation fails with an error, the server SHOULD<223> fail the current
> operation with the same error code returned by the previous
> I have written a smbtorture test case to verify the above. I also
> propose the following fix. I am attaching code for your reference.
> Kindly let me know if the changes look reasonable.
oh, interesting. Yeah, I would also say that this seems to be wrong in
Samba. Let me check...
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the samba-technical