summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-12-12 07:46:24 +0000
committertedu <tedu@openbsd.org>2014-12-12 07:46:24 +0000
commit94a51e1acc0141b5880e45df611e7fe60a8818a7 (patch)
tree5369e5df76d4197a211e3d60267cc9e3307bfbf0
parentsysctl kern.global_ptrace. (diff)
downloadwireguard-openbsd-94a51e1acc0141b5880e45df611e7fe60a8818a7.tar.xz
wireguard-openbsd-94a51e1acc0141b5880e45df611e7fe60a8818a7.zip
sysctl kern.global_ptrace.
controls whether you can ptrace any process with appropriate privileges or only one own's children. ok deraadt
-rw-r--r--lib/libc/gen/sysctl.310
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index eb6a2acedcb..f506f100667 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.244 2014/12/05 04:12:48 uebayasi Exp $
+.\" $OpenBSD: sysctl.3,v 1.245 2014/12/12 07:46:24 tedu 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 5 2014 $
+.Dd $Mdocdate: December 12 2014 $
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -411,6 +411,7 @@ information.
.It Dv KERN_FORKSTAT Ta "struct forkstat" Ta "no"
.It Dv KERN_FSCALE Ta "integer" Ta "no"
.It Dv KERN_FSYNC Ta "integer" Ta "no"
+.It Dv KERN_GLOBAL_PTRACE Ta "integer" Ta "yes"
.It Dv KERN_HOSTID Ta "integer" Ta "yes"
.It Dv KERN_HOSTNAME Ta "string" Ta "yes"
.It Dv KERN_INTRCNT Ta "node" Ta "not applicable"
@@ -570,6 +571,11 @@ The kernel fixed-point scale factor.
.It Dv KERN_FSYNC
Return 1 if the File Synchronisation Option is available on this system,
otherwise 0.
+.It Dv KERN_GLOBAL_PTRACE
+When set to 1, permit
+.Xr ptrace 2
+to attach to any process with the appropriate privileges.
+When set to 0, processes may only attach to their own descendants.
.It Dv KERN_HOSTID
Get or set the host ID.
.It Dv KERN_HOSTNAME