NFSD: callback request does not use correct credential for AUTH_SYS
authorDai Ngo <dai.ngo@oracle.com>
Sat, 1 Apr 2023 20:22:08 +0000 (13:22 -0700)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 4 Apr 2023 13:55:27 +0000 (09:55 -0400)
commit7de82c2f36fb26aa78440bbf0efcf360b691d98b
tree47a5d5ef2c0e2caacc7a5e692008a5e7c372dab1
parent8be8f170e8383fd1421e8b87950e90d7dd45be07
NFSD: callback request does not use correct credential for AUTH_SYS

Currently callback request does not use the credential specified in
CREATE_SESSION if the security flavor for the back channel is AUTH_SYS.

Problem was discovered by pynfs 4.1 DELEG5 and DELEG7 test with error:
DELEG5   st_delegation.testCBSecParms     : FAILURE
           expected callback with uid, gid == 17, 19, got 0, 0

Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Fixes: 8276c902bbe9 ("SUNRPC: remove uid and gid from struct auth_cred")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4callback.c