mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Allow v3 GETATTR requests even when weakly authenticated. Change the error
return for for weakly authenticated requests from REJECTEDCRED to WEAKAUTH for consistency with Solaris.
This commit is contained in:
parent
87fe0fa84f
commit
5f8afa0579
1 changed files with 3 additions and 2 deletions
|
|
@ -1149,7 +1149,8 @@ nfsrv_fhtovp(fhandle_t *fhp, int lockflag, struct vnode **vpp, int *vfslockedp,
|
|||
*/
|
||||
mountreq = FALSE;
|
||||
if (v3) {
|
||||
if (nfsd->nd_procnum == NFSPROC_FSINFO)
|
||||
if (nfsd->nd_procnum == NFSPROC_FSINFO
|
||||
|| nfsd->nd_procnum == NFSPROC_GETATTR)
|
||||
mountreq = TRUE;
|
||||
} else {
|
||||
if (nfsd->nd_procnum == NFSPROC_FSSTAT
|
||||
|
|
@ -1157,7 +1158,7 @@ nfsrv_fhtovp(fhandle_t *fhp, int lockflag, struct vnode **vpp, int *vfslockedp,
|
|||
mountreq = TRUE;
|
||||
}
|
||||
if (!mountreq) {
|
||||
error = NFSERR_AUTHERR | AUTH_REJECTCRED;
|
||||
error = NFSERR_AUTHERR | AUTH_TOOWEAK;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue