ksmbd: fix subauth 0 handling in sid_to_id()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 24 Aug 2021 11:07:18 +0000 (20:07 +0900)
committerSteve French <stfrench@microsoft.com>
Sat, 4 Sep 2021 04:29:44 +0000 (23:29 -0500)
commitf0bb29d5c65b492ab82cce7b1e1dd00cbca28601
tree7dfc5a86d60a498724d6f027622c901e0f4138df
parent0e844efebdf9c03aed9ae1894f22762a8aee1a3b
ksmbd: fix subauth 0 handling in sid_to_id()

It's not obvious why subauth 0 would be excluded from translation. This
would lead to wrong results whenever a non-identity idmapping is used.

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>
fs/ksmbd/smbacl.c