Searched refs:mode_req (Results 1 - 5 of 5) sorted by relevance

/darwin-on-arm/xnu/bsd/kern/
H A Dsysv_ipc.c101 ipcperm(kauth_cred_t cred, struct ipc_perm *perm, int mode_req) argument
104 int want_mod_controlinfo = (mode_req & IPC_M);
119 return ((mode_req & mode_owner) == mode_req ? 0 : EACCES);
131 if ((mode_req & mode_group & mode_world) == mode_req) {
134 if ((mode_req & mode_group) != mode_req) {
140 if ((mode_req & mode_world) != mode_req) {
[all...]
H A Dkern_credential.c5516 * mode_req The requested POSIX access rights
5527 posix_cred_access(kauth_cred_t cred, id_t object_uid, id_t object_gid, mode_t object_mode, mode_t mode_req) argument
5537 if (kauth_cred_getuid(cred) == object_uid && (mode_req & mode_owner) == mode_req)
5547 if ((mode_req & mode_group & mode_world) == mode_req) {
5553 if ((mode_req & mode_group) != mode_req) {
5565 if ((mode_req & mode_world) != mode_req) {
[all...]
H A Dposix_sem.c646 int mode_req = ((mode & FREAD) ? S_IRUSR : 0) | local
653 return(posix_cred_access(cred, pinfo->psem_uid, pinfo->psem_gid, pinfo->psem_mode, mode_req));
H A Dposix_shm.c819 int mode_req = ((mode & FREAD) ? S_IRUSR : 0) | local
826 return(posix_cred_access(cred, pinfo->pshm_uid, pinfo->pshm_gid, pinfo->pshm_mode, mode_req));
/darwin-on-arm/xnu/bsd/sys/
H A Dkauth.h213 extern int posix_cred_access(kauth_cred_t cred, id_t object_uid, id_t object_gid, mode_t object_mode, mode_t mode_req);

Completed in 39 milliseconds