diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-03-14 00:42:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-03-14 00:42:26 +0000 |
commit | 4e75a2f3d47fcb4101ad6c63743e4262538a944a (patch) | |
tree | 8b4782ea02392ac0303642f999b3a00a9de95490 /sys/compat/sunos/syscalls.master | |
parent | 31d9f37c33069ba39395849737d1ef3662a4c687 (diff) |
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/sunos/syscalls.master')
-rw-r--r-- | sys/compat/sunos/syscalls.master | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/compat/sunos/syscalls.master b/sys/compat/sunos/syscalls.master index fe1fe06e37c..fa7f6bc731c 100644 --- a/sys/compat/sunos/syscalls.master +++ b/sys/compat/sunos/syscalls.master @@ -1,4 +1,4 @@ - $OpenBSD: syscalls.master,v 1.11 1999/06/07 07:17:48 deraadt Exp $ + $OpenBSD: syscalls.master,v 1.12 2002/03/14 00:42:25 miod Exp $ ; $NetBSD: syscalls.master,v 1.33 1996/02/28 16:05:43 pk Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -69,8 +69,12 @@ 23 NOARGS { int sys_setuid(uid_t uid); } 24 NOARGS { uid_t sys_getuid(void); } 25 STD { int sunos_sys_ostime(int time); } +#ifdef PTRACE 26 STD { long sunos_sys_ptrace(int req, pid_t pid, \ caddr_t addr, int data, char *addr2); } +#else +26 UNIMPL sunos_ptrace +#endif 27 UNIMPL sunos_alarm 28 UNIMPL sunos_fstat 29 UNIMPL sunos_pause |