blob: 734119b5d711d2877cc16a77606544625266d904 [file] [log] [blame] [raw]
Allow init(8) to ptrace(2) itself.
diff -ru --exclude-from freebsd-src-diff-exclude-names /var/archive3/public/freebsd-releng-10.4-src/sys/kern/sys_process.c freebsd-10.4/sys/kern/sys_process.c
--- /var/archive3/public/freebsd-releng-10.4-src/sys/kern/sys_process.c 2019-08-17 21:42:18.000000000 +0800
+++ freebsd-10.4/sys/kern/sys_process.c 2019-08-17 22:04:47.434764974 +0800
@@ -780,10 +780,6 @@
error = EBUSY;
goto fail;
}
- if (p->p_pptr == initproc) {
- error = EPERM;
- goto fail;
- }
break;
case PT_ATTACH: