Lines Matching refs:CR_FLAGS
240 CR_FLAGS(newcred) &= ~PRIV_USER; in priv_pr_spriv()
241 CR_FLAGS(newcred) |= (pii->val & PRIV_USER); in priv_pr_spriv()
266 if ((CR_FLAGS(newcred) & PRIV_AWARE) == 0) { in priv_pr_spriv()
267 CR_FLAGS(newcred) |= PRIV_AWARE; in priv_pr_spriv()
314 if ((CR_FLAGS(cr) & PRIV_AWARE) == 0) in priv_getset()
336 ii->val = CR_FLAGS(cr); in priv_getinfo()
639 if ((CR_FLAGS(cr) & (PRIV_AWARE|PRIV_AWARE_RESET)) == PRIV_AWARE) in priv_set_PA()
642 CR_FLAGS(cr) |= PRIV_AWARE; in priv_set_PA()
643 CR_FLAGS(cr) &= ~PRIV_AWARE_RESET; in priv_set_PA()
678 if (!(CR_FLAGS(cr) & PRIV_AWARE) || in priv_adjust_PA()
680 CR_FLAGS(cr) &= ~PRIV_AWARE_RESET; in priv_adjust_PA()
684 if (CR_FLAGS(cr) & PRIV_AWARE_INHERIT) in priv_adjust_PA()
699 CR_FLAGS(cr) &= ~(PRIV_AWARE|PRIV_AWARE_RESET); in priv_adjust_PA()
711 if ((CR_FLAGS(cr) & (PRIV_AWARE|PRIV_AWARE_RESET)) != in priv_reset_PA()
713 CR_FLAGS(cr) &= ~PRIV_AWARE_RESET; in priv_reset_PA()
737 CR_FLAGS(cr) &= ~(PRIV_AWARE|PRIV_AWARE_RESET); in priv_reset_PA()