]> 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)
commit6204ef38738464c6157be27ea6be60c01b4b6de5
treead27b724ef2a1325e61d285e7173dc63f6499b70
parent7da2063c4b315a63fe2e875d3226f9afa4f9c176
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 f2d2892f8028 ("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: 70ea8a218a88 ("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