]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsserver: Default to nfs_reserved_port_only="YES"
authorMark Johnston <markj@FreeBSD.org>
Tue, 23 Apr 2024 16:51:03 +0000 (12:51 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 23 Apr 2024 16:54:46 +0000 (12:54 -0400)
commit6d5ce2bb63445e9c09c3b5c29fb18983e1e2628c
treebd2615b1dab61d59310d6e351bee574a3549ecc2
parentfb2ab7ce52d3f1e9d0998f3e5c12c3468ce4563a
nfsserver: Default to nfs_reserved_port_only="YES"

This setting causes the NFS server to check that all RPCs are sent from
a privileged (<= 1023) port, rejecting those that are not.  This
slightly raises the bar for a user with network access to an
unauthenticated NFS server to access exported NFS filesystems.

Users that use traditional NFS clients (e.g., those provided by FreeBSD
or Linux) should not see any difference, assuming that unprivileged
filesystem mounting is disallowed.

Note that the setting is per-VNET, so may be overridden in VNET jails
without affecting the rest of the system.

Discussed with: freebsd-arch@
Reviewed by: rmacklem, bz, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44906
libexec/rc/rc.conf
sys/fs/nfsserver/nfs_nfsdkrpc.c