diff options
| author | Christian Brauner <[email protected]> | 2021-08-24 11:10:20 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2021-09-04 04:29:45 +0000 |
| commit | 55cd04d75e635ac915bf54586ec64057249508ec (patch) | |
| tree | 465ebbdde91c73439cddec6b14fd2f9d7d9b7146 /fs/proc/array.c | |
| parent | ksmbd: fix subauth 0 handling in sid_to_id() (diff) | |
| download | kernel-55cd04d75e635ac915bf54586ec64057249508ec.tar.gz kernel-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 <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Namjae Jeon <[email protected]>
Cc: Hyunchul Lee <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: [email protected]
Signed-off-by: Christian Brauner <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
