blob: e79db8a49d4a7d3d1629413dc011478a10f87592 [file] [log] [blame] [raw]
Allow init(8) to ptrace(2) itself.
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/kern/sys_process.c freebsd-11.1/usr/src/sys/kern/sys_process.c
--- /usr/src/sys/kern/sys_process.c 2019-03-16 23:27:17.474690000 +0800
+++ freebsd-11.1/usr/src/sys/kern/sys_process.c 2019-03-22 11:48:41.978201000 +0800
@@ -823,10 +823,6 @@
error = EBUSY;
goto fail;
}
- if (p->p_pptr == initproc) {
- error = EPERM;
- goto fail;
- }
break;
case PT_ATTACH: