[PATCH 2/2] s3/smbd: Fix error code for unsupported SET_INFO requests
FileValidDataLengthInformation and FileShortNameInformation are both
valid FileInfoClasses that we don't support. According to [MS-SMB2]
22.214.171.124.1, we should be returning STATUS_NOT_SUPPORTED instead of
NT_STATUS_INVALID_LEVEL for these.
+ /* [MS-SMB2] 126.96.36.199.1 states we MUST fail with STATUS_NOT_SUPPORTED. */
+ case SMB_FILE_VALID_DATA_LENGTH_INFORMATION:
+ case SMB_FILE_SHORT_NAME_INFORMATION:
+ return NT_STATUS_NOT_SUPPORTED;
* CIFS UNIX extensions.
Re: [PATCH 1/2] s3/smbd: Add new file information classes
On Tuesday, 9 January 2018 21:49:50 CET Jeremy Allison via samba-technical
> On Tue, Jan 09, 2018 at 12:04:15PM -0800, Justin Maggard via samba-technical
> These (and the following patch) LGTM. Can I get a second Team
> reviewer ?