Lines Matching refs:pcred

1793 	posix_cred_t pcred = posix_cred_get(cred);
1796 for (i = 1; i < pcred->cr_ngroups; i++) {
1801 if (pcred->cr_groups[i] == new_egid) {
1802 pcred->cr_groups[i] = old_egid;
1828 if (displaced && !(pcred->cr_flags & CRF_NOMEMBERD) &&
1837 pcred->cr_groups[0] = new_egid;
2818 posix_cred_t pcred = posix_cred_get(cred);
2827 for (i = 0; i < pcred->cr_ngroups; i++) {
2828 if (gid == pcred->cr_groups[i]) {
2838 if (pcred->cr_gmuid == KAUTH_UID_NONE) {
2867 if ((gm->gm_uid == pcred->cr_gmuid) && (gm->gm_gid == gid) && !kauth_groups_expired(gm)) {
2880 DTRACE_PROC2(kauth__group__cache__hit, int, pcred->cr_gmuid, int, gid);
2888 el.el_uid = pcred->cr_gmuid;
3526 posix_cred_t pcred = posix_cred_get(cred);
3531 if (pcred->cr_flags & CRF_NOMEMBERD) {
3532 pcred->cr_gmuid = KAUTH_UID_NONE;
3551 pcred->cr_gmuid = pcred->cr_uid;
3562 pcred->cr_gmuid = KAUTH_UID_NONE;
3563 pcred->cr_flags |= CRF_NOMEMBERD;
3568 if (pcred->cr_ngroups < 1)
3593 new_pcred->cr_uid = pcred->cr_uid;
3594 new_pcred->cr_ruid = pcred->cr_ruid;
3595 new_pcred->cr_svuid = pcred->cr_svuid;
3596 new_pcred->cr_rgid = pcred->cr_rgid;
3597 new_pcred->cr_svgid = pcred->cr_svgid;
3598 new_pcred->cr_gmuid = pcred->cr_gmuid;
3599 new_pcred->cr_ngroups = pcred->cr_ngroups;
3600 bcopy(&pcred->cr_groups[0], &new_pcred->cr_groups[0], sizeof(new_pcred->cr_groups));
3605 new_pcred->cr_flags = pcred->cr_flags;
3665 posix_cred_t pcred = posix_cred_get(cred);
3673 if ((euid == KAUTH_UID_NONE || pcred->cr_uid == euid) &&
3674 (ruid == KAUTH_UID_NONE || pcred->cr_ruid == ruid) &&
3675 (svuid == KAUTH_UID_NONE || pcred->cr_svuid == svuid) &&
3676 (pcred->cr_gmuid == gmuid)) {
3740 posix_cred_t pcred = posix_cred_get(cred);
3749 if (pcred->cr_groups[0] == egid &&
3750 pcred->cr_rgid == rgid &&
3751 pcred->cr_svgid == svgid) {
3837 posix_cred_t pcred;
3841 pcred = posix_cred_get(cred);
3847 if ((pcred->cr_gmuid == gmuid) && (pcred->cr_ngroups == groupcount)) {
3849 if (pcred->cr_groups[i] != groups[i])
3947 posix_cred_t pcred;
3951 pcred = posix_cred_get(cred);
3957 if (pcred->cr_uid == uid && pcred->cr_ruid == uid && pcred->cr_svuid == uid &&
3958 pcred->cr_gid == gid && pcred->cr_rgid == gid && pcred->cr_svgid == gid) {
3971 temp_pcred->cr_flags = pcred->cr_flags;
3973 if (pcred->cr_flags & CRF_NOMEMBERD) {
4025 posix_cred_t pcred;
4029 pcred = posix_cred_get(cred);
4038 if (pcred->cr_svuid == uid && pcred->cr_svgid == gid) {
4638 posix_cred_t pcred = posix_cred_get(cred);
4641 if ((pcred->cr_ruid == pcred->cr_uid) &&
4642 (pcred->cr_rgid == pcred->cr_gid)) {
4652 temp_pcred->cr_uid = pcred->cr_ruid;
4654 if (kauth_cred_change_egid(&temp_cred, pcred->cr_rgid)) {
4663 temp_pcred->cr_gmuid = pcred->cr_ruid;
4925 posix_cred_t pcred = posix_cred_get(cred);
4950 match = (bcmp(found_pcred, pcred, sizeof (*pcred)) == 0) ? TRUE : FALSE;
4954 ((pcred->cr_flags & CRF_MAC_ENFORCE) != 0)) {
5020 posix_cred_t pcred = posix_cred_get(cred);
5030 if (pcred->cr_flags & CRF_MAC_ENFORCE) {
5397 * Parameters: pcred The posix_cred_t to use as the initial
5428 posix_cred_create(posix_cred_t pcred)
5433 temp_cred.cr_posix = *pcred;
5485 * pcred The POSIX credential t label it with
5501 posix_cred_label(kauth_cred_t cred, posix_cred_t pcred)
5503 cred->cr_posix = *pcred; /* structure assign for now */