hasprocperm
cankill = hasprocperm(tp->p_cred, ctp->conp_cred);
if (tp->t_cid == 0 || !hasprocperm(tp->t_cred, CRED())) {
rets = hasprocperm(tcrp, scrp);
extern int hasprocperm(const cred_t *, const cred_t *);
if (!hasprocperm(p->p_cred, CRED()))
if (!hasprocperm(p->p_cred, CRED()))
if (!(p->p_flag & SSYS) && hasprocperm(p->p_cred, CRED())) {
if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED())) {
if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED())) {
if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED())) {
if (!hasprocperm(tp->t_cred, CRED()))