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.
This commit is contained in:
parent
12f2987754
commit
d5e1fb3173
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24495
@ -45,7 +45,7 @@ static char copyright[] =
|
|||||||
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
|
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
|
||||||
*/
|
*/
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: mount_nfs.c,v 1.17 1997/03/11 12:31:56 peter Exp $";
|
"$Id: mount_nfs.c,v 1.18 1997/03/29 03:32:39 imp Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -139,7 +139,7 @@ struct nfs_args nfsdefargs = {
|
|||||||
0,
|
0,
|
||||||
(u_char *)0,
|
(u_char *)0,
|
||||||
0,
|
0,
|
||||||
0,
|
NFSMNT_RESVPORT,
|
||||||
NFS_WSIZE,
|
NFS_WSIZE,
|
||||||
NFS_RSIZE,
|
NFS_RSIZE,
|
||||||
NFS_READDIRSIZE,
|
NFS_READDIRSIZE,
|
||||||
|
Loading…
Reference in New Issue
Block a user