diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2006-05-28 23:29:33 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2006-05-28 23:29:33 +0000 |
commit | a2416f06ac46dabf19752b024b229348c8d22815 (patch) | |
tree | 34c623f891ee5935a85839439d7688760340e50d /sys/nfs/nfs.h | |
parent | e62e7f8d148fab5e5c120113bcf1d33e110f63e7 (diff) |
Add support for NFS mounts to be from non-reserved ports:
- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok
Diffstat (limited to 'sys/nfs/nfs.h')
-rw-r--r-- | sys/nfs/nfs.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/nfs/nfs.h b/sys/nfs/nfs.h index 03292652ac1..8d2960e893d 100644 --- a/sys/nfs/nfs.h +++ b/sys/nfs/nfs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs.h,v 1.24 2005/06/08 04:17:14 marius Exp $ */ +/* $OpenBSD: nfs.h,v 1.25 2006/05/28 23:29:32 avsm Exp $ */ /* $NetBSD: nfs.h,v 1.10.4.1 1996/05/27 11:23:56 fvdl Exp $ */ /* @@ -221,12 +221,14 @@ struct nfsstats { */ #define NFS_NFSSTATS 1 /* struct: struct nfsstats */ #define NFS_NIOTHREADS 2 /* number of i/o threads */ -#define NFS_MAXID 3 +#define NFS_PRIVPORT 3 /* whether priv ports are needed */ +#define NFS_MAXID 4 #define FS_NFS_NAMES { \ { 0, 0 }, \ { "nfsstats", CTLTYPE_STRUCT }, \ - { "iothreads", CTLTYPE_INT } \ + { "iothreads", CTLTYPE_INT }, \ + { "privport", CTLTYPE_INT } \ } /* |