Skip to content

Commit 7de82c2

Browse files
daimngochucklever
authored andcommitted
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 <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Fixes: 8276c90 ("SUNRPC: remove uid and gid from struct auth_cred") Signed-off-by: Chuck Lever <[email protected]>
1 parent 8be8f17 commit 7de82c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/nfs4callback.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,8 @@ static const struct cred *get_backchannel_cred(struct nfs4_client *clp, struct r
946946
if (!kcred)
947947
return NULL;
948948

949-
kcred->uid = ses->se_cb_sec.uid;
950-
kcred->gid = ses->se_cb_sec.gid;
949+
kcred->fsuid = ses->se_cb_sec.uid;
950+
kcred->fsgid = ses->se_cb_sec.gid;
951951
return kcred;
952952
}
953953
}

0 commit comments

Comments
 (0)