blob: cbee9a2de0f71625e2480d88799ee71525d38765 [file] [log] [blame] [raw]
Allow init(8) to ptrace(2) itself.
diff -ru --exclude-from freebsd-src-diff-exclude-names /var/tmp/freebsd-src/usr/src/sys/kern/sys_process.c freebsd-10.3/usr/src/sys/kern/sys_process.c
--- /var/tmp/freebsd-src/usr/src/sys/kern/sys_process.c 2016-03-25 09:09:26.000000000 +0800
+++ freebsd-10.3/usr/src/sys/kern/sys_process.c 2018-11-05 19:30:07.176799501 +0800
@@ -751,10 +751,6 @@
error = EBUSY;
goto fail;
}
- if (p->p_pptr == initproc) {
- error = EPERM;
- goto fail;
- }
break;
case PT_ATTACH: