]> 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)
commit7bef0380c9d9c94e2d43093c769a35dff16350d2
tree031f4bd30ee9ebac0ff0fa1ce4b3242747dfde47
parent9334e6113ec55c408542e290a6c2a011246c2a3c
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