aboutsummaryrefslogtreecommitdiff
path: root/fs/ksmbd/ndr.c
diff options
context:
space:
mode:
authorGravatar Christian Brauner <christian.brauner@ubuntu.com> 2021-08-24 20:10:20 +0900
committerGravatar Steve French <stfrench@microsoft.com> 2021-09-03 23:29:45 -0500
commit55cd04d75e635ac915bf54586ec64057249508ec (patch)
tree465ebbdde91c73439cddec6b14fd2f9d7d9b7146 /fs/ksmbd/ndr.c
parentksmbd: fix subauth 0 handling in sid_to_id() (diff)
downloadlinux-55cd04d75e635ac915bf54586ec64057249508ec.tar.gz
linux-55cd04d75e635ac915bf54586ec64057249508ec.tar.bz2
linux-55cd04d75e635ac915bf54586ec64057249508ec.zip
ksmbd: fix translation in sid_to_id()
The sid_to_id() functions is relevant when changing ownership of filesystem objects based on acl information. In this case we need to first translate the relevant s*ids into k*ids in ksmbd's user namespace and account for any idmapped mounts. Requesting a change in ownership requires the inverse translation to be applied when we would report ownership to userspace. So k*id_from_mnt() must be used here. Cc: Steve French <stfrench@microsoft.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Namjae Jeon <namjae.jeon@samsung.com> Cc: Hyunchul Lee <hyc.lee@gmail.com> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: linux-cifs@vger.kernel.org Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/ndr.c')
0 files changed, 0 insertions, 0 deletions