mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
prison_proc_iterate(): make it work for prison0
PR: 283163
(cherry picked from commit 831531a82e)
This commit is contained in:
parent
3f879ed6ee
commit
b50851e8eb
1 changed files with 1 additions and 2 deletions
|
|
@ -3051,8 +3051,7 @@ prison_proc_iterate(struct prison *pr, void (*cb)(struct proc *, void *),
|
|||
FOREACH_PROC_IN_SYSTEM(p) {
|
||||
PROC_LOCK(p);
|
||||
if (p->p_state != PRS_NEW && p->p_ucred != NULL) {
|
||||
for (ppr = p->p_ucred->cr_prison;
|
||||
ppr != &prison0;
|
||||
for (ppr = p->p_ucred->cr_prison; ppr != NULL;
|
||||
ppr = ppr->pr_parent) {
|
||||
if (ppr == pr) {
|
||||
cb(p, cbarg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue