diff options
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsfh.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index 8d2b49914843..0eb464a39aae 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c | |||
@@ -249,10 +249,16 @@ fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, int type, int access) | |||
249 | if (error) | 249 | if (error) |
250 | goto out; | 250 | goto out; |
251 | 251 | ||
252 | /* Check security flavor */ | 252 | if (!(access & MAY_LOCK)) { |
253 | error = check_nfsd_access(exp, rqstp); | 253 | /* |
254 | if (error) | 254 | * pseudoflavor restrictions are not enforced on NLM, |
255 | goto out; | 255 | * which clients virtually always use auth_sys for, |
256 | * even while using RPCSEC_GSS for NFS. | ||
257 | */ | ||
258 | error = check_nfsd_access(exp, rqstp); | ||
259 | if (error) | ||
260 | goto out; | ||
261 | } | ||
256 | 262 | ||
257 | /* Finally, check access permissions. */ | 263 | /* Finally, check access permissions. */ |
258 | error = nfsd_permission(rqstp, exp, dentry, access); | 264 | error = nfsd_permission(rqstp, exp, dentry, access); |