summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_dummy.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2002-03-14 00:42:20 +0000
committermiod <miod@openbsd.org>2002-03-14 00:42:20 +0000
commit477189db112285b29265105ac9553ec4cc2989a4 (patch)
tree59b27fd003c41c45c470b25c96923f686f84eb4b /sys/compat/linux/linux_dummy.c
parentWhoops. missing simple_unlock. (diff)
downloadwireguard-openbsd-477189db112285b29265105ac9553ec4cc2989a4.tar.xz
wireguard-openbsd-477189db112285b29265105ac9553ec4cc2989a4.zip
Turn the ptrace(2) syscall into a kernel compile option, option PTRACE in
your kernel configuration file. By default, GENERIC will enable this. When PTRACE is not enabled, several ptrace-like features of the procfs filesystem will be disabled as well (namely, the ability to read and write any process' registers, as well as attching, single stepping and detaching to/from processes). This should help paranoid people build better sandboxens, and us to build smaller ramdisks.
Diffstat (limited to 'sys/compat/linux/linux_dummy.c')
-rw-r--r--sys/compat/linux/linux_dummy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_dummy.c b/sys/compat/linux/linux_dummy.c
index 1e3d7c6247a..5f91d36b9c4 100644
--- a/sys/compat/linux/linux_dummy.c
+++ b/sys/compat/linux/linux_dummy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_dummy.c,v 1.6 2002/02/04 20:04:52 provos Exp $ */
+/* $OpenBSD: linux_dummy.c,v 1.7 2002/03/14 00:42:25 miod Exp $ */
/*-
* Copyright (c) 1994-1995 Søren Schmidt
@@ -57,7 +57,9 @@ unsupported_msg(struct proc *p, const char *fname)
}
DUMMY(ostat); /* #18 */
+#ifdef PTRACE
DUMMY(ptrace); /* #26 */
+#endif
DUMMY(ofstat); /* #28 */
DUMMY(stty); /* #31 */
DUMMY(gtty); /* #32 */