Home
last modified time | relevance | path

Searched hist:"23114 c6c2af175a08730400a04f57991f301127f" (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdkrpc.cdiff 23114c6c2af175a08730400a04f57991f301127f Thu Dec 20 23:21:41 CET 2018 Rick Macklem <rmacklem@FreeBSD.org> Fix the NFSv4 server to obey vfs.nfsd.nfs_privport.

When the NFSv4 server was coded, I believed that the specification authors
did not want NFSv4 servers to require a client to use a reserved port#.
However, recently it has been noted that the Linux NFSv4 server does support
a check for a reserved port#.
Since both the FreeBSD and Linux NFSv4 clients use a reserved port# by
default, enabling vfs.nfsd.nfs_privport to require a reserved port# for
NFSv4 the same as it does for NFSv2, 3 seems reasonable.
The only case where this could cause a POLA violation is a FreeBSD NFSv4
server with vfs.nfsd.nfs_privport set, but with NFSv4 clients doing mounts
without using a reserved port# (< 1024).

Tested by: chaz.newton58@gmail.com
PR: 234106
MFC after: 1 week