Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 1997 18:51:59 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Guido van Rooij <guido@freefall.freebsd.org>
Cc:        CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org
Subject:   Re: cvs commit:  src/sbin/mount_nfs mount_nfs.c
Message-ID:  <Pine.BSF.3.95q.970401184534.4064D-100000@kipper.nlsystems.com>
In-Reply-To: <199704011720.JAA13518@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 1 Apr 1997, Guido van Rooij wrote:

> guido       97/04/01 09:20:18
> 
>   Modified:    sbin/mount_nfs  mount_nfs.c
>   Log:
>   Make mount_nfs use reserved ports by default.. Mounts already use
>   a reserved port, so why not the nfs rpc's themselves?
>   With user allowed mounts, this perhaps needs a closer look, but
>   on the other hand, a user could already specify the flag.
>   If normal users should not be able to use resserved ports, the kernel
>   should check for the flag at mount time.

Did you leave a way to clear the NFSMNT_RESVPORT flag?  The -P option sets
it and so does -o resvport but -o noresvport won't work since the handling
of the altflags passed to getmntopts by mount_nfs is bogus.  It only
handles setting flags and not clearing flags.  It should be passing
&nfsargsp->flags to getmntopts and the option table should use NFSMNT_*
flags instead of ALTF_*.

--
Doug Rabson				Mail:  dfr@nlsystems.com
Nonlinear Systems Ltd.			Phone: +44 181 951 1891




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970401184534.4064D-100000>