]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r342286
authorrmacklem <rmacklem@FreeBSD.org>
Fri, 28 Dec 2018 00:26:19 +0000 (00:26 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Fri, 28 Dec 2018 00:26:19 +0000 (00:26 +0000)
commit4b9098849df19a547ce70e31e6bd5975a27abc03
tree5219a81f8fa408bf5a241b2e98b68cae10b227c1
parentfcc50d95a0cf9012aa51ca53da73d8c7a5a909dd
MFC: r342286
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).
sys/fs/nfsserver/nfs_nfsdkrpc.c