| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: sysctl.8,v 1.160 2009/04/01 15:55:27 christos Exp $ | | 1 | .\" $NetBSD: sysctl.8,v 1.161 2009/09/30 04:30:50 elad Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2004 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2004 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" | | 14 | .\" |
| @@ -44,27 +44,27 @@ | | | @@ -44,27 +44,27 @@ |
44 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 44 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
45 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 45 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
46 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 46 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
47 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 47 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
48 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 48 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
49 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 49 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
50 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 50 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
51 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 51 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
52 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 52 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
53 | .\" SUCH DAMAGE. | | 53 | .\" SUCH DAMAGE. |
54 | .\" | | 54 | .\" |
55 | .\" @(#)sysctl.8 8.1 (Berkeley) 6/6/93 | | 55 | .\" @(#)sysctl.8 8.1 (Berkeley) 6/6/93 |
56 | .\" | | 56 | .\" |
57 | .Dd April 1, 2009 | | 57 | .Dd September 30, 2009 |
58 | .Dt SYSCTL 8 | | 58 | .Dt SYSCTL 8 |
59 | .Os | | 59 | .Os |
60 | .Sh NAME | | 60 | .Sh NAME |
61 | .Nm sysctl | | 61 | .Nm sysctl |
62 | .Nd get or set kernel state | | 62 | .Nd get or set kernel state |
63 | .Sh SYNOPSIS | | 63 | .Sh SYNOPSIS |
64 | .Nm sysctl | | 64 | .Nm sysctl |
65 | .Op Fl AdeMn | | 65 | .Op Fl AdeMn |
66 | .Oo | | 66 | .Oo |
67 | .Fl r | | | 67 | .Fl r | |
68 | .Fl x | | 68 | .Fl x |
69 | .Oc | | 69 | .Oc |
70 | .Op Ar name ... | | 70 | .Op Ar name ... |
| @@ -366,36 +366,26 @@ necessarily protected by this. | | | @@ -366,36 +366,26 @@ necessarily protected by this. |
366 | .Dq Hexadecimal . | | 366 | .Dq Hexadecimal . |
367 | Make | | 367 | Make |
368 | .Nm | | 368 | .Nm |
369 | default to hexadecimal display of the retrieved value | | 369 | default to hexadecimal display of the retrieved value |
370 | .It r | | 370 | .It r |
371 | .Dq Read-only . | | 371 | .Dq Read-only . |
372 | The data instrumented by the given node is read-only. | | 372 | The data instrumented by the given node is read-only. |
373 | Note that other mechanisms may still exist for changing the data. | | 373 | Note that other mechanisms may still exist for changing the data. |
374 | This is the default for nodes that instrument data. | | 374 | This is the default for nodes that instrument data. |
375 | .It w | | 375 | .It w |
376 | .Dq Writable . | | 376 | .Dq Writable . |
377 | The data instrumented by the given node is writable at any time. | | 377 | The data instrumented by the given node is writable at any time. |
378 | This is the default for nodes that can have children. | | 378 | This is the default for nodes that can have children. |
379 | .It 1 | | | |
380 | .Dq Read-only at securelevel 1 . | | | |
381 | The data instrumented by this node is writable until the securelevel | | | |
382 | reaches or passes securelevel 1. | | | |
383 | Examples of this include some network tunables. | | | |
384 | .It 2 | | | |
385 | .Dq Read-only at securelevel 2 . | | | |
386 | The data instrumented by this node is writable until the securelevel | | | |
387 | reaches or passes securelevel 2. | | | |
388 | An example of this is the per-process core filename setting. | | | |
389 | .El | | 379 | .El |
390 | .Pp | | 380 | .Pp |
391 | .It | | 381 | .It |
392 | .Ar value= Ns Aq Ar V | | 382 | .Ar value= Ns Aq Ar V |
393 | An initial starting value for a new node that does not reference | | 383 | An initial starting value for a new node that does not reference |
394 | existing kernel data. | | 384 | existing kernel data. |
395 | Initial values can only be assigned for nodes of the | | 385 | Initial values can only be assigned for nodes of the |
396 | .Dq int , | | 386 | .Dq int , |
397 | .Dq quad , | | 387 | .Dq quad , |
398 | and | | 388 | and |
399 | .Dq string | | 389 | .Dq string |
400 | types. | | 390 | types. |
401 | .El | | 391 | .El |
| @@ -517,19 +507,18 @@ sysctl -w //describe=local.audiodebug=ge | | | @@ -517,19 +507,18 @@ sysctl -w //describe=local.audiodebug=ge |
517 | .Ed | | 507 | .Ed |
518 | Note that the children are made writable so that the two debug | | 508 | Note that the children are made writable so that the two debug |
519 | settings in question can be tuned arbitrarily. | | 509 | settings in question can be tuned arbitrarily. |
520 | .Pp | | 510 | .Pp |
521 | To destroy that same subtree: | | 511 | To destroy that same subtree: |
522 | .Bd -literal -offset indent -compact | | 512 | .Bd -literal -offset indent -compact |
523 | sysctl -w //destroy=local.esm_debug | | 513 | sysctl -w //destroy=local.esm_debug |
524 | sysctl -w //destroy=local.audiodebug | | 514 | sysctl -w //destroy=local.audiodebug |
525 | sysctl -w //destroy=local | | 515 | sysctl -w //destroy=local |
526 | .Ed | | 516 | .Ed |
527 | .Sh SEE ALSO | | 517 | .Sh SEE ALSO |
528 | .Xr sysctl 3 , | | 518 | .Xr sysctl 3 , |
529 | .Xr ksyms 4 , | | 519 | .Xr ksyms 4 , |
530 | .Xr sysctl 7 , | | 520 | .Xr sysctl 7 |
531 | .Xr secmodel_securelevel 9 | | | |
532 | .Sh HISTORY | | 521 | .Sh HISTORY |
533 | .Nm sysctl | | 522 | .Nm sysctl |
534 | first appeared in | | 523 | first appeared in |
535 | .Bx 4.4 . | | 524 | .Bx 4.4 . |