Since some NFSv4 servers enforce the requirement for a reserved port#,
enable use of the (no)resvport mount option for NFSv4. I had thought that the RFC required that non-reserved port #s be allowed, but I couldn't find it in the RFC. MFC after: 2 weeks
This commit is contained in:
parent
db5815641c
commit
315c38d135
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252067
@ -592,12 +592,6 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp,
|
|||||||
nmp->nm_flag &= ~NFSMNT_RDIRPLUS;
|
nmp->nm_flag &= ~NFSMNT_RDIRPLUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Clear NFSMNT_RESVPORT for NFSv4, since it is not required. */
|
|
||||||
if ((argp->flags & NFSMNT_NFSV4) != 0) {
|
|
||||||
argp->flags &= ~NFSMNT_RESVPORT;
|
|
||||||
nmp->nm_flag &= ~NFSMNT_RESVPORT;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Re-bind if rsrvd port requested and wasn't on one */
|
/* Re-bind if rsrvd port requested and wasn't on one */
|
||||||
adjsock = !(nmp->nm_flag & NFSMNT_RESVPORT)
|
adjsock = !(nmp->nm_flag & NFSMNT_RESVPORT)
|
||||||
&& (argp->flags & NFSMNT_RESVPORT);
|
&& (argp->flags & NFSMNT_RESVPORT);
|
||||||
|
Loading…
Reference in New Issue
Block a user