]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix set of group SID via NTSD xattrs
authorAmir Goldstein <amir73il@gmail.com>
Mon, 3 Jan 2022 14:50:25 +0000 (16:50 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 13 Feb 2022 20:56:34 +0000 (14:56 -0600)
commit8c2f49d383e95028b7f9eae2dba877c53bc95751
treead27b724ef2a1325e61d285e7173dc63f6499b70
parent85a255aca32f81e4a4706c272a89c73644662c2d
cifs: fix set of group SID via NTSD xattrs

'setcifsacl -g <SID>' silently fails to set the group SID on server.

Actually, the bug existed since commit 181230de4216 ("CIFS: Add support
for setting owner info, dos attributes, and create time"), but this fix
will not apply cleanly to kernel versions <= v5.10.

Fixes: e09b0f24991a ("SMB3: Add support for getting and setting SACLs")
Cc: stable@vger.kernel.org # 5.11+
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/xattr.c