blob: 49a328394a3590c34fab908cbc877cec45afc526 [file] [log] [blame] [raw]
Allow PID 1 to be ptrace(2)d.
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/kern/init_main.c freebsd-11.1/usr/src/sys/kern/init_main.c
--- /usr/src/sys/kern/init_main.c 2017-07-21 07:41:54.000000000 +0800
+++ freebsd-11.1/usr/src/sys/kern/init_main.c 2019-03-22 12:32:45.460427000 +0800
@@ -844,7 +844,7 @@
newcred = crget();
sx_xlock(&proctree_lock);
PROC_LOCK(initproc);
- initproc->p_flag |= P_SYSTEM | P_INMEM;
+ initproc->p_flag |= P_INMEM;
initproc->p_treeflag |= P_TREE_REAPER;
LIST_INSERT_HEAD(&initproc->p_reaplist, &proc0, p_reapsibling);
oldcred = initproc->p_ucred;