]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add "-R" option to tell mountd to not register with rpcbind.
authorrmacklem <rmacklem@FreeBSD.org>
Sat, 24 Oct 2020 22:48:28 +0000 (22:48 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Sat, 24 Oct 2020 22:48:28 +0000 (22:48 +0000)
commit1ae081c2d3db372d6c0f393d7e051ba1b9a7fb16
treeff800e203e8fcd8a54abffcebcfae2a9acd3a3b5
parentdaeaf8ac1ce4eea4ccf2c37d4f1b7e7fea5df962
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