Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/sysctl Remove stale references to the "read only at sec...



details:   https://anonhg.NetBSD.org/src/rev/44cca05e70f0
branches:  trunk
changeset: 747734:44cca05e70f0
user:      elad <elad%NetBSD.org@localhost>
date:      Wed Sep 30 04:30:50 2009 +0000

description:
Remove stale references to the "read only at securelevel [12]" flags in
the documentation and code comments.

diffstat:

 sbin/sysctl/sysctl.8 |  17 +++--------------
 sbin/sysctl/sysctl.c |   9 ++++-----
 2 files changed, 7 insertions(+), 19 deletions(-)

diffs (76 lines):

diff -r 6e2255687d04 -r 44cca05e70f0 sbin/sysctl/sysctl.8
--- a/sbin/sysctl/sysctl.8      Wed Sep 30 03:41:12 2009 +0000
+++ b/sbin/sysctl/sysctl.8      Wed Sep 30 04:30:50 2009 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: sysctl.8,v 1.160 2009/04/01 15:55:27 christos Exp $
+.\"    $NetBSD: sysctl.8,v 1.161 2009/09/30 04:30:50 elad Exp $
 .\"
 .\" Copyright (c) 2004 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -54,7 +54,7 @@
 .\"
 .\"    @(#)sysctl.8    8.1 (Berkeley) 6/6/93
 .\"
-.Dd April 1, 2009
+.Dd September 30, 2009
 .Dt SYSCTL 8
 .Os
 .Sh NAME
@@ -376,16 +376,6 @@
 .Dq Writable .
 The data instrumented by the given node is writable at any time.
 This is the default for nodes that can have children.
-.It 1
-.Dq Read-only at securelevel 1 .
-The data instrumented by this node is writable until the securelevel
-reaches or passes securelevel 1.
-Examples of this include some network tunables.
-.It 2
-.Dq Read-only at securelevel 2 .
-The data instrumented by this node is writable until the securelevel
-reaches or passes securelevel 2.
-An example of this is the per-process core filename setting.
 .El
 .Pp
 .It
@@ -527,8 +517,7 @@
 .Sh SEE ALSO
 .Xr sysctl 3 ,
 .Xr ksyms 4 ,
-.Xr sysctl 7 ,
-.Xr secmodel_securelevel 9
+.Xr sysctl 7
 .Sh HISTORY
 .Nm sysctl
 first appeared in
diff -r 6e2255687d04 -r 44cca05e70f0 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c      Wed Sep 30 03:41:12 2009 +0000
+++ b/sbin/sysctl/sysctl.c      Wed Sep 30 04:30:50 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.129 2009/04/01 15:55:27 christos Exp $ */
+/*     $NetBSD: sysctl.c,v 1.130 2009/09/30 04:30:50 elad Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.129 2009/04/01 15:55:27 christos Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.130 2009/09/30 04:30:50 elad Exp $");
 #endif
 #endif /* not lint */
 
@@ -912,10 +912,9 @@
   [addr=0x####,|symbol=...|value=...]
 
   size is optional for some types.  type must be set before anything
-  else.  nodes can have [r12whp], but nothing else applies.  if no
+  else.  nodes can have [rwhp], but nothing else applies.  if no
   size or type is given, node is asserted.  writeable is the default,
-  with [r12w] being read-only, writeable below securelevel 1,
-  writeable below securelevel 2, and unconditionally writeable
+  with [rw] being read-only and unconditionally writeable
   respectively.  if you specify addr, it is assumed to be the name of
   a kernel symbol, if value, CTLFLAG_OWNDATA will be asserted for
   strings, CTLFLAG_IMMEDIATE for ints and u_quad_ts.  you cannot



Home | Main Index | Thread Index | Old Index