• C
    ksmbd: fix translation in ksmbd_acls_fattr() · 43205ca7
    Christian Brauner 提交于
    When creating new filesystem objects ksmbd translates between k*ids and
    s*ids. For this it often uses struct smb_fattr and stashes the k*ids in
    cf_uid and cf_gid. Let cf_uid and cf_gid always contain the final
    information taking any potential idmapped mounts into account. When
    finally translation cf_*id into s*ids translate them into the user
    namespace of ksmbd since that is the relevant user namespace 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: NChristian Brauner <christian.brauner@ubuntu.com>
    Signed-off-by: NNamjae Jeon <linkinjeon@kernel.org>
    Signed-off-by: NSteve French <stfrench@microsoft.com>
    43205ca7
smb2pdu.c 223.2 KB