• Christian Brauner's avatar
    ksmbd: fix translation in acl entries · 0e844efe
    Christian Brauner authored
    The ksmbd server performs translation of posix acls to smb acls.
    Currently the translation is wrong since the idmapping of the mount is
    used to map the ids into raw userspace ids but what is relevant is the
    user namespace of ksmbd itself. The user namespace of ksmbd itself which
    is the initial user namespace. The operation is similar to asking "What
    *ids would a userspace process see given that k*id in the relevant user
    namespace?". Before the final translation we need to apply the idmapping
    of the mount in case any is used. Add two simple helpers for ksmbd.
    
    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: default avatarChristian Brauner <christian.brauner@ubuntu.com>
    Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    0e844efe
smbacl.h 6.4 KB