summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfsargs.h
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-03-27 20:01:07 +0000
committerguido <guido@FreeBSD.org>1997-03-27 20:01:07 +0000
commit8db0f5f4fd48850ac02e218a0086a7032f3ea1fe (patch)
treec5f893968b5aaa8ee18c14efb13319d13bcf80cc /sys/nfsclient/nfsargs.h
parent223d4ca2d3051129756e410d44cbae4df53bd602 (diff)
downloadFreeBSD-src-8db0f5f4fd48850ac02e218a0086a7032f3ea1fe.zip
FreeBSD-src-8db0f5f4fd48850ac02e218a0086a7032f3ea1fe.tar.gz
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
Diffstat (limited to 'sys/nfsclient/nfsargs.h')
-rw-r--r--sys/nfsclient/nfsargs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nfsclient/nfsargs.h b/sys/nfsclient/nfsargs.h
index 6aaa1da..dd71abe 100644
--- a/sys/nfsclient/nfsargs.h
+++ b/sys/nfsclient/nfsargs.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 }, \
}
/*
OpenPOWER on IntegriCloud