From ce14e737211ad2bf1592b922fb90392abe96d94f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Wed, 11 Jun 2014 15:37:36 +0200 Subject: [PATCH] mountd: Stop refusing requests from "unprivileged ports" * Security by "privileged ports" is a joke. We don't live in the 1980s anymore and everybody can be root on her/his own machine. * Some mount requests made by super-users on client DragonFly machines were done on "unprivileged ports" anyway, possibly due to ephemeral port exhaustion. * Disabling this mechanism by default thus makes DragonFly NFS servers more reliable. --- sbin/mountd/mountd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index a507b68d21..584d956cf0 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -203,7 +203,7 @@ struct ucred def_anon = { { (gid_t) -2 } }; int force_v2 = 0; -int resvport_only = 1; +int resvport_only = 0; int dir_only = 1; int do_log = 0; int got_sighup = 0; -- 2.41.0