]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
SUNRPC: Set rq_auth_stat in the pg_authenticate() callout
authorChuck Lever <chuck.lever@oracle.com>
Thu, 15 Jul 2021 19:52:12 +0000 (15:52 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Aug 2021 18:18:35 +0000 (14:18 -0400)
commit5c2465dfd457f3015eebcc3ace50570e1d896aeb
tree7b2f1e22270533439e7cca5e453d16fdb7132b2f
parent438623a06bacd69c40c4af633bb09a3bbb9dfc78
SUNRPC: Set rq_auth_stat in the pg_authenticate() callout

In a few moments, rq_auth_stat will need to be explicitly set to
rpc_auth_ok before execution gets to the dispatcher.

svc_authenticate() already sets it, but it often gets reset to
rpc_autherr_badcred right after that call, even when authentication
is successful. Let's ensure that the pg_authenticate callout and
svc_set_client() set it properly in every case.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/lockd/svc.c
fs/nfs/callback.c
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/svc.c
net/sunrpc/svcauth_unix.c