]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb: common: change the data type of num_aces to le16
authorNamjae Jeon <linkinjeon@kernel.org>
Wed, 12 Feb 2025 14:26:09 +0000 (23:26 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 3 Mar 2025 04:50:54 +0000 (22:50 -0600)
commit62e7dd0a39c2d0d7ff03274c36df971f1b3d2d0d
treeb44f1657249bbc36a0659fa37df5df5d5500fdf2
parente26e2d2e15daf1ab33e0135caf2304a0cfa2744b
smb: common: change the data type of num_aces to le16

2.4.5 in [MS-DTYP].pdf describe the data type of num_aces as le16.

AceCount (2 bytes): An unsigned 16-bit integer that specifies the count
of the number of ACE records in the ACL.

Change it to le16 and add reserved field to smb_acl struct.

Reported-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Tested-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsacl.c
fs/smb/common/smbacl.h
fs/smb/server/smbacl.c
fs/smb/server/smbacl.h