aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsserver/nfsrvstats.h
diff options
context:
space:
mode:
authorGuido van Rooij <guido@FreeBSD.org>1997-03-27 20:01:07 +0000
committerGuido van Rooij <guido@FreeBSD.org>1997-03-27 20:01:07 +0000
commit394da4c167c955c9f60e490b51a8b6705242341f (patch)
treef0b3b3a1db941038450b3c02a10e49d827136e68 /sys/nfsserver/nfsrvstats.h
parentf55f3f46933a9d559c1a67e96f1582e3b6be57fe (diff)
downloadsrc-394da4c167c955c9f60e490b51a8b6705242341f.tar.gz
src-394da4c167c955c9f60e490b51a8b6705242341f.zip
Add code that will reject nfs requests in teh kernel from nonprivileged
ports. This option will be automatically set/cleraed when mount is run without/with the -n option. Reviewed by: Doug Rabson
Notes
Notes: svn path=/head/; revision=24330
Diffstat (limited to 'sys/nfsserver/nfsrvstats.h')
-rw-r--r--sys/nfsserver/nfsrvstats.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nfsserver/nfsrvstats.h b/sys/nfsserver/nfsrvstats.h
index 6aaa1da83014..dd71abe40e36 100644
--- a/sys/nfsserver/nfsrvstats.h
+++ b/sys/nfsserver/nfsrvstats.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs.h 8.4 (Berkeley) 5/1/95
- * $Id$
+ * $Id: nfs.h,v 1.22 1997/02/22 09:42:34 peter Exp $
*/
#ifndef _NFS_NFS_H_
@@ -324,10 +324,12 @@ struct nfsstats {
* fs.nfs sysctl(3) identifiers
*/
#define NFS_NFSSTATS 1 /* struct: struct nfsstats */
+#define NFS_NFSPRIVPORT 2 /* int: prohibit nfs to resvports */
#define FS_NFS_NAMES { \
{ 0, 0 }, \
{ "nfsstats", CTLTYPE_STRUCT }, \
+ { "nfsprivport", CTLTYPE_INT }, \
}
/*