diff options
author | 2020-01-24 15:17:16 +0000 | |
---|---|---|
committer | 2020-01-24 15:17:16 +0000 | |
commit | fb338e4b2d3ac003d9f6af178f0a0b9f9f6ee44c (patch) | |
tree | 77f05a011bcbcec2de3a23a2066ec072bc54ac19 | |
parent | regen (diff) | |
download | wireguard-openbsd-fb338e4b2d3ac003d9f6af178f0a0b9f9f6ee44c.tar.xz wireguard-openbsd-fb338e4b2d3ac003d9f6af178f0a0b9f9f6ee44c.zip |
Document `kern.allowdt' button.
sysctl.2 bits from benno@
-rw-r--r-- | lib/libc/sys/sysctl.2 | 12 | ||||
-rw-r--r-- | share/man/man4/dt.4 | 9 |
2 files changed, 17 insertions, 4 deletions
diff --git a/lib/libc/sys/sysctl.2 b/lib/libc/sys/sysctl.2 index 50814281390..9caf5b509d8 100644 --- a/lib/libc/sys/sysctl.2 +++ b/lib/libc/sys/sysctl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sysctl.2,v 1.36 2019/12/08 14:10:15 jmc Exp $ +.\" $OpenBSD: sysctl.2,v 1.37 2020/01/24 15:17:16 mpi Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: December 8 2019 $ +.Dd $Mdocdate: January 24 2020 $ .Dt SYSCTL 2 .Os .Sh NAME @@ -419,6 +419,7 @@ virtual memory statistics, load average history, and clock rate information. .Bl -column "KERN_PROC_NOBROADCASTKILL" "u_int64_t[CPUSTATES]" "no" -offset indent .It Sy "Second level name" Ta Sy "Type" Ta Sy "Changeable" +.It Dv KERN_ALLOWDT Ta "integer" Ta "yes" .It Dv KERN_ALLOWKMEM Ta "integer" Ta "yes" .It Dv KERN_ARGMAX Ta "integer" Ta "no" .It Dv KERN_AUDIO Ta "node" Ta "yes" @@ -495,6 +496,13 @@ information. .It Dv KERN_WXABORT Ta "integer" Ta "yes" .El .Bl -tag -width "123456" +.It Dv KERN_ALLOWDT Pq Va kern.allowdt +Allow userland processes access to +.Pa /dev/dt . +When running with a +.Xr securelevel 7 +greater than 0, +this variable may not be changed. .It Dv KERN_ALLOWKMEM Pq Va kern.allowkmem Allow userland processes access to .Pa /dev/mem diff --git a/share/man/man4/dt.4 b/share/man/man4/dt.4 index ce971f3b488..3e5007b4dee 100644 --- a/share/man/man4/dt.4 +++ b/share/man/man4/dt.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dt.4,v 1.1 2020/01/21 16:18:28 mpi Exp $ +.\" $OpenBSD: dt.4,v 1.2 2020/01/24 15:17:16 mpi Exp $ .\" .\" Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 21 2020 $ +.Dd $Mdocdate: January 24 2020 $ .Dt DT 4 .Os .Sh NAME @@ -28,6 +28,11 @@ It has to be configured and enabled through the .Xr ioctl 2 interface exposed by the pseudo-device .Pa /dev/dt . +.Pp +This device can only be opened when the +.Va kern.allowkmem +.Xr sysctl 2 +variable is set. .\"Sh IOCTL INTERFACE .\" .Sh FILES |