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: |