freebsd-skq/sys/fs/nfsserver
rmacklem 0d33c81f6d 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
2018-12-20 22:21:41 +00:00
..
nfs_fha_new.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
nfs_fha_new.h sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
nfs_nfsdcache.c style: Remove remaining deprecated MALLOC/FREE macros 2018-01-25 22:25:13 +00:00
nfs_nfsdkrpc.c Fix the NFSv4 server to obey vfs.nfsd.nfs_privport. 2018-12-20 22:21:41 +00:00
nfs_nfsdport.c Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
nfs_nfsdserv.c Silence newer gcc warnings. 2018-07-29 21:51:17 +00:00
nfs_nfsdsocket.c r304026 added code that started statistics gathering for an operation 2018-11-20 01:52:45 +00:00
nfs_nfsdstate.c Fix LORs between vn_start_write() and vn_lock() in nfsrv_copymr(). 2018-08-18 19:14:06 +00:00
nfs_nfsdsubs.c Merge the pNFS server code from projects/pnfs-planb-server into head. 2018-06-12 19:36:32 +00:00