]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r367026
authorRick Macklem <rmacklem@FreeBSD.org>
Sun, 29 Nov 2020 01:22:30 +0000 (01:22 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Sun, 29 Nov 2020 01:22:30 +0000 (01:22 +0000)
commit6d3ddea0b272cae8bb45c253b6fcdff9367fb202
tree88c27bcad1f6041d68af14840623f4d4c2f40ac4
parent5043fa50f0bd18900e89795126cbc864ac815ce4
MFC: r367026
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.
usr.sbin/mountd/mountd.c