Lines Matching defs:cred
392 kauth_cred_t cred = kauth_cred_get();
451 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_M)))
499 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_M)))
522 eval = suser(cred, &p->p_acflag);
552 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_R))) {
593 kauth_cred_t cred = kauth_cred_get();
625 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, msgflg & 0700 ))) {
633 eval = mac_sysvmsq_check_msqget(cred, msqptr);
668 msqptr->u.msg_perm.cuid = kauth_cred_getuid(cred);
669 msqptr->u.msg_perm.uid = kauth_cred_getuid(cred);
670 msqptr->u.msg_perm.cgid = kauth_cred_getgid(cred);
671 msqptr->u.msg_perm.gid = kauth_cred_getgid(cred);
686 mac_sysvmsq_label_associate(cred, msqptr);