Commit 504386d0 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] kNFSd: Use only the uid when deciding whether a setclientid is being...

[PATCH] kNFSd: Use only the uid when deciding whether a setclientid is being done with the "same principal".

From: NeilBrown <neilb@cse.unsw.edu.au>

I would have assumed that we should also check for the same security
(pseudo)flavor, but that doesn't seem to be how Solaris does it, and since
the spec doesn't suggest including such information in the clientid, that
would make it impossible to switch pseudoflavors.
parent 9154e5fb
......@@ -270,8 +270,7 @@ cmp_clid(clientid_t * cl1, clientid_t * cl2) {
/* XXX what about NGROUP */
static int
cmp_creds(struct svc_cred *cr1, struct svc_cred *cr2){
return((cr1->cr_uid == cr2->cr_uid) &&
(cr1->cr_gid == cr2->cr_gid));
return(cr1->cr_uid == cr2->cr_uid);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment