Lines Matching refs:cred
346 kauth_cred_t cred = kauth_cred_get();
406 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_M)))
454 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_M)))
472 eval = suser(cred, &p->p_acflag);
502 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_R))) {
543 kauth_cred_t cred = kauth_cred_get();
575 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, msgflg & 0700 ))) {
583 eval = mac_sysvmsq_check_msqget(cred, msqptr);
618 msqptr->u.msg_perm.cuid = kauth_cred_getuid(cred);
619 msqptr->u.msg_perm.uid = kauth_cred_getuid(cred);
620 msqptr->u.msg_perm.cgid = cred->cr_gid;
621 msqptr->u.msg_perm.gid = cred->cr_gid;
636 mac_sysvmsq_label_associate(cred, msqptr);