Lines Matching refs:cred
683 kauth_cred_t cred = kauth_cred_get();
715 eval = mac_sysvsem_check_semctl(cred, semakptr, cmd);
725 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_M)))
728 semakptr->u.sem_perm.cuid = kauth_cred_getuid(cred);
729 semakptr->u.sem_perm.uid = kauth_cred_getuid(cred);
747 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_M)))
772 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_R)))
787 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_R)))
797 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_R)))
807 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_R)))
817 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_R)))
831 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_R)))
841 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_W)))
869 if ((eval = ipcperm(cred, &semakptr->u.sem_perm, IPC_W)))
905 kauth_cred_t cred = kauth_cred_get();
928 if ((eval = ipcperm(cred, &sema[semid].u.sem_perm,
946 eval = mac_sysvsem_check_semget(cred, &sema[semid]);
1000 sema[semid].u.sem_perm.cuid = kauth_cred_getuid(cred);
1001 sema[semid].u.sem_perm.uid = kauth_cred_getuid(cred);
1002 sema[semid].u.sem_perm.cgid = kauth_cred_getgid(cred);
1003 sema[semid].u.sem_perm.gid = kauth_cred_getgid(cred);
1015 mac_sysvsem_label_associate(cred, &sema[semid]);