]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix chown and chgrp when idsfromsid mount option enabled
authorSteve French <stfrench@microsoft.com>
Fri, 12 Jun 2020 15:36:37 +0000 (10:36 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 12 Jun 2020 18:21:32 +0000 (13:21 -0500)
commitc94118d03a50d017af10c0213d0c564009e9d4c1
tree031f4bd30ee9ebac0ff0fa1ce4b3242747dfde47
parent2bdec156cc89980f14b17be818c9321fa52eb577
cifs: fix chown and chgrp when idsfromsid mount option enabled

idsfromsid was ignored in chown and chgrp causing it to fail
when upcalls were not configured for lookup.  idsfromsid allows
mapping users when setting user or group ownership using
"special SID" (reserved for this).  Add support for chmod and chgrp
when idsfromsid mount option is enabled.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/cifsacl.c