]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add "-R" option to tell mountd to not register with rpcbind.
authorRick Macklem <rmacklem@FreeBSD.org>
Sat, 24 Oct 2020 22:48:28 +0000 (22:48 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Sat, 24 Oct 2020 22:48:28 +0000 (22:48 +0000)
commitbde6f938bfe0243072f8799aaa6589557b01faab
treeff800e203e8fcd8a54abffcebcfae2a9acd3a3b5
parentae37905b93d1fcb4e798fad7ac3b869198fd917f
Add "-R" option to tell mountd to not register with rpcbind.

rpcbind is now considered a security risk for some sites.
Since an NFSv4 only NFS server does not need rpcbind,
it makes sense to have an option that implements this.

This patch adds a "-R" option that disables the Mount
protocol (not used by NFSv4) and does not register
with rpcbind.

Changes are required to /etc/rc.d/mountd and /etc/rc.d/nfsd.
Those will be in a separate commit.

Reviewed by: freqlabs, asomers
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D26746
usr.sbin/mountd/mountd.c