]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commita6603398278480aafef644d4c40549b5c5064c73
tree031f4bd30ee9ebac0ff0fa1ce4b3242747dfde47
parent975221eca5fbfdb4b6b1d17c9e540d4d7627ce18
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