process_domem() and process_checkioperm() were used by systrace(4) and
procfs(4), so they needed to be present even in kernels without the PTRACE
option. Since systrace and procfs are both gone now, the odd conditional
dance in sys_process.c can be simplified.
ok?
Philip
Index: sys_process.c
===================================================================
RCS file: /data/src/openbsd/src/sys/kern/sys_process.c,v
retrieving revision 1.70
diff -u -p -r1.70 sys_process.c
--- sys_process.c 1 Sep 2016 12:47:18 -0000 1.70
+++ sys_process.c 9 Oct 2016 18:49:28 -0000
@@ -669,7 +669,6 @@ sys_ptrace(struct proc *p, void *v, regi
#endif
return 0;
}
-#endif /* PTRACE */
/*
* Check if a process is allowed to fiddle with the memory of another.
@@ -741,7 +740,6 @@ process_domem(struct proc *curp, struct
return (error);
}
-#ifdef PTRACE
int
process_auxv_offset(struct proc *curp, struct proc *p, struct uio *uiop)
{