tag | line | file | source code |
ipcp | 14 | ipc/msg.c | extern int ipcperms (struct ipc_perm *ipcp, short msgflg); |
ipcp | 43 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 60 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 65 | ipc/msg.c | if (ipcperms(ipcp, S_IWUGO)) |
ipcp | 115 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 132 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 143 | ipc/msg.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 231 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 248 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 249 | ipc/msg.c | ipcp->mode = (msgflg & S_IRWXUGO); |
ipcp | 250 | ipc/msg.c | ipcp->key = key; |
ipcp | 251 | ipc/msg.c | ipcp->cuid = ipcp->uid = current->euid; |
ipcp | 252 | ipc/msg.c | ipcp->gid = ipcp->cgid = current->egid; |
ipcp | 324 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 402 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 406 | ipc/msg.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 420 | ipc/msg.c | if (!suser() && current->euid != ipcp->cuid && |
ipcp | 421 | ipc/msg.c | current->euid != ipcp->uid) |
ipcp | 426 | ipc/msg.c | ipcp->uid = tbuf.msg_perm.uid; |
ipcp | 427 | ipc/msg.c | ipcp->gid = tbuf.msg_perm.gid; |
ipcp | 428 | ipc/msg.c | ipcp->mode = (ipcp->mode & ~S_IRWXUGO) | |
ipcp | 433 | ipc/msg.c | if (!suser() && current->euid != ipcp->cuid && |
ipcp | 434 | ipc/msg.c | current->euid != ipcp->uid) |
ipcp | 43 | ipc/sem.c | extern int ipcperms (struct ipc_perm *ipcp, short semflg); |
ipcp | 86 | ipc/sem.c | struct ipc_perm *ipcp; |
ipcp | 112 | ipc/sem.c | ipcp = &sma->sem_perm; |
ipcp | 113 | ipc/sem.c | ipcp->mode = (semflg & S_IRWXUGO); |
ipcp | 114 | ipc/sem.c | ipcp->key = key; |
ipcp | 115 | ipc/sem.c | ipcp->cuid = ipcp->uid = current->euid; |
ipcp | 116 | ipc/sem.c | ipcp->gid = ipcp->cgid = current->egid; |
ipcp | 366 | ipc/sem.c | struct ipc_perm *ipcp; |
ipcp | 427 | ipc/sem.c | ipcp = &sma->sem_perm; |
ipcp | 450 | ipc/sem.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 470 | ipc/sem.c | if (suser() || current->euid == ipcp->cuid || current->euid == ipcp->uid) { |
ipcp | 504 | ipc/sem.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 511 | ipc/sem.c | if (ipcperms (ipcp, S_IWUGO)) |
ipcp | 521 | ipc/sem.c | if (suser() || current->euid == ipcp->cuid || current->euid == ipcp->uid) { |
ipcp | 522 | ipc/sem.c | ipcp->uid = tbuf.sem_perm.uid; |
ipcp | 523 | ipc/sem.c | ipcp->gid = tbuf.sem_perm.gid; |
ipcp | 524 | ipc/sem.c | ipcp->mode = (ipcp->mode & ~S_IRWXUGO) |
ipcp | 531 | ipc/sem.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 540 | ipc/sem.c | if (ipcperms (ipcp, S_IWUGO)) |
ipcp | 19 | ipc/shm.c | extern int ipcperms (struct ipc_perm *ipcp, short shmflg); |
ipcp | 206 | ipc/shm.c | struct ipc_perm *ipcp; |
ipcp | 285 | ipc/shm.c | ipcp = &shp->shm_perm; |
ipcp | 291 | ipc/shm.c | if (!(ipcp->mode & SHM_LOCKED)) |
ipcp | 293 | ipc/shm.c | ipcp->mode &= ~SHM_LOCKED; |
ipcp | 301 | ipc/shm.c | if (ipcp->mode & SHM_LOCKED) |
ipcp | 303 | ipc/shm.c | ipcp->mode |= SHM_LOCKED; |
ipcp | 306 | ipc/shm.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 326 | ipc/shm.c | ipcp->uid = tbuf.shm_perm.uid; |
ipcp | 327 | ipc/shm.c | ipcp->gid = tbuf.shm_perm.gid; |
ipcp | 328 | ipc/shm.c | ipcp->mode = (ipcp->mode & ~S_IRWXUGO) |
ipcp | 32 | ipc/util.c | int ipcperms (struct ipc_perm *ipcp, short flag) |
ipcp | 39 | ipc/util.c | granted_mode = ipcp->mode; |
ipcp | 40 | ipc/util.c | if (current->euid == ipcp->cuid || current->euid == ipcp->uid) |
ipcp | 42 | ipc/util.c | else if (in_group_p(ipcp->cgid) || in_group_p(ipcp->gid)) |