aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index aca84c942595..f372a6edef34 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1556,6 +1556,14 @@ nfsd4_exchange_id(struct svc_rqst *rqstp,
1556 status = nfserr_clid_inuse; /* XXX: ? */ 1556 status = nfserr_clid_inuse; /* XXX: ? */
1557 goto out; 1557 goto out;
1558 } 1558 }
1559 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) {
1560 /* 18.35.4 case 9 */
1561 if (exid->flags & EXCHGID4_FLAG_UPD_CONFIRMED_REC_A)
1562 status = nfserr_perm;
1563 else /* case 3 */
1564 status = nfserr_clid_inuse;
1565 goto out;
1566 }
1559 if (!same_verf(&verf, &conf->cl_verifier)) { 1567 if (!same_verf(&verf, &conf->cl_verifier)) {
1560 /* 18.35.4 case 8 */ 1568 /* 18.35.4 case 8 */
1561 if (exid->flags & EXCHGID4_FLAG_UPD_CONFIRMED_REC_A) { 1569 if (exid->flags & EXCHGID4_FLAG_UPD_CONFIRMED_REC_A) {
@@ -1566,15 +1574,6 @@ nfsd4_exchange_id(struct svc_rqst *rqstp,
1566 expire_client(conf); 1574 expire_client(conf);
1567 goto out_new; 1575 goto out_new;
1568 } 1576 }
1569 if (!same_creds(&conf->cl_cred, &rqstp->rq_cred)) {
1570 /* 18.35.4 case 9 */
1571 if (exid->flags & EXCHGID4_FLAG_UPD_CONFIRMED_REC_A) {
1572 status = nfserr_perm;
1573 goto out;
1574 }
1575 expire_client(conf);
1576 goto out_new;
1577 }
1578 /* 1577 /*
1579 * Set bit when the owner id and verifier map to an already 1578 * Set bit when the owner id and verifier map to an already
1580 * confirmed client id (18.35.3). 1579 * confirmed client id (18.35.3).