Lines Matching defs:pcred

1901 	posix_cred_t pcred = posix_cred_get(cred);
1904 for (i = 1; i < pcred->cr_ngroups; i++) {
1909 if (pcred->cr_groups[i] == new_egid) {
1910 pcred->cr_groups[i] = old_egid;
1936 if (displaced && !(pcred->cr_flags & CRF_NOMEMBERD) &&
1945 pcred->cr_groups[0] = new_egid;
3006 posix_cred_t pcred = posix_cred_get(cred);
3015 for (i = 0; i < pcred->cr_ngroups; i++) {
3016 if (gid == pcred->cr_groups[i]) {
3026 if (pcred->cr_gmuid == KAUTH_UID_NONE) {
3055 if ((gm->gm_uid == pcred->cr_gmuid) && (gm->gm_gid == gid) && !kauth_groups_expired(gm)) {
3068 DTRACE_PROC2(kauth__group__cache__hit, int, pcred->cr_gmuid, int, gid);
3076 el.el_uid = pcred->cr_gmuid;
3714 posix_cred_t pcred = posix_cred_get(cred);
3719 if (pcred->cr_flags & CRF_NOMEMBERD) {
3720 pcred->cr_gmuid = KAUTH_UID_NONE;
3739 pcred->cr_gmuid = pcred->cr_uid;
3750 pcred->cr_gmuid = KAUTH_UID_NONE;
3751 pcred->cr_flags |= CRF_NOMEMBERD;
3756 if (pcred->cr_ngroups < 1)
3781 new_pcred->cr_uid = pcred->cr_uid;
3782 new_pcred->cr_ruid = pcred->cr_ruid;
3783 new_pcred->cr_svuid = pcred->cr_svuid;
3784 new_pcred->cr_rgid = pcred->cr_rgid;
3785 new_pcred->cr_svgid = pcred->cr_svgid;
3786 new_pcred->cr_gmuid = pcred->cr_gmuid;
3787 new_pcred->cr_ngroups = pcred->cr_ngroups;
3788 bcopy(&pcred->cr_groups[0], &new_pcred->cr_groups[0], sizeof(new_pcred->cr_groups));
3793 new_pcred->cr_flags = pcred->cr_flags;
3853 posix_cred_t pcred = posix_cred_get(cred);
3861 if ((euid == KAUTH_UID_NONE || pcred->cr_uid == euid) &&
3862 (ruid == KAUTH_UID_NONE || pcred->cr_ruid == ruid) &&
3863 (svuid == KAUTH_UID_NONE || pcred->cr_svuid == svuid) &&
3864 (pcred->cr_gmuid == gmuid)) {
3928 posix_cred_t pcred = posix_cred_get(cred);
3937 if (pcred->cr_groups[0] == egid &&
3938 pcred->cr_rgid == rgid &&
3939 pcred->cr_svgid == svgid) {
4025 posix_cred_t pcred;
4029 pcred = posix_cred_get(cred);
4035 if ((pcred->cr_gmuid == gmuid) && (pcred->cr_ngroups == groupcount)) {
4037 if (pcred->cr_groups[i] != groups[i])
4080 posix_cred_t pcred;
4082 pcred = posix_cred_get(cred);
4090 if (kauth_identitysvc_has_registered && kauth_external_supplementary_groups_supported && (pcred->cr_flags & CRF_NOMEMBERD) == 0) {
4110 limit = MIN(*countp, pcred->cr_ngroups);
4114 memcpy(grouplist, pcred->cr_groups, sizeof(gid_t) * limit);
4160 posix_cred_t pcred;
4164 pcred = posix_cred_get(cred);
4170 if (pcred->cr_uid == uid && pcred->cr_ruid == uid && pcred->cr_svuid == uid &&
4171 pcred->cr_gid == gid && pcred->cr_rgid == gid && pcred->cr_svgid == gid) {
4184 temp_pcred->cr_flags = pcred->cr_flags;
4186 if (pcred->cr_flags & CRF_NOMEMBERD) {
4238 posix_cred_t pcred;
4242 pcred = posix_cred_get(cred);
4251 if (pcred->cr_svuid == uid && pcred->cr_svgid == gid) {
4874 posix_cred_t pcred = posix_cred_get(cred);
4877 if ((pcred->cr_ruid == pcred->cr_uid) &&
4878 (pcred->cr_rgid == pcred->cr_gid)) {
4888 temp_pcred->cr_uid = pcred->cr_ruid;
4890 if (kauth_cred_change_egid(&temp_cred, pcred->cr_rgid)) {
4899 temp_pcred->cr_gmuid = pcred->cr_ruid;
5168 posix_cred_t pcred = posix_cred_get(cred);
5193 match = (bcmp(found_pcred, pcred, sizeof (*pcred)) == 0) ? TRUE : FALSE;
5198 ((pcred->cr_flags & CRF_MAC_ENFORCE) != 0)) {
5265 posix_cred_t pcred = posix_cred_get(cred);
5276 if (pcred->cr_flags & CRF_MAC_ENFORCE) {
5644 * Parameters: pcred The posix_cred_t to use as the initial
5675 posix_cred_create(posix_cred_t pcred)
5680 temp_cred.cr_posix = *pcred;
5732 * pcred The POSIX credential t label it with
5748 posix_cred_label(kauth_cred_t cred, posix_cred_t pcred)
5750 cred->cr_posix = *pcred; /* structure assign for now */