Lines Matching defs:pr
463 struct process *pr = p->p_p;
482 mtx_enter(&pr->ps_mtx);
488 if (ISSET(pr->ps_flags, PS_PLEDGE) &&
489 (pr->ps_pledge & PLEDGE_ERROR))
490 promises &= (pr->ps_pledge & PLEDGE_USERSET);
493 if (ISSET(pr->ps_flags, PS_PLEDGE) &&
494 (((promises | pr->ps_pledge) != pr->ps_pledge))) {
495 mtx_leave(&pr->ps_mtx);
501 if (ISSET(pr->ps_flags, PS_EXECPLEDGE) &&
502 (((execpromises | pr->ps_execpledge) != pr->ps_execpledge))) {
503 mtx_leave(&pr->ps_mtx);
510 pr->ps_pledge = promises;
511 atomic_setbits_int(&pr->ps_flags, PS_PLEDGE);
513 if ((pr->ps_pledge & (PLEDGE_RPATH | PLEDGE_WPATH |
519 pr->ps_execpledge = execpromises;
520 atomic_setbits_int(&pr->ps_flags, PS_EXECPLEDGE);
523 mtx_leave(&pr->ps_mtx);
531 unveil_destroy(pr);