| Allow PID 1 to be ptrace(2)d. |
| |
| diff -ru --exclude-from freebsd-src-diff-exclude-names /var/archive3/public/freebsd-releng-10.4-src/sys/kern/init_main.c freebsd-10.4/sys/kern/init_main.c |
| --- /var/archive3/public/freebsd-releng-10.4-src/sys/kern/init_main.c 2017-09-29 08:19:46.000000000 +0800 |
| +++ freebsd-10.4/sys/kern/init_main.c 2019-08-17 22:09:28.609749533 +0800 |
| @@ -835,7 +835,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; |