tag | line | file | source code |
ipcp | 19 | ipc/msg.c | extern int ipcperms (struct ipc_perm *ipcp, short msgflg); |
ipcp | 50 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 75 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 86 | ipc/msg.c | if (ipcperms(ipcp, S_IWUGO)) |
ipcp | 158 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 181 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 198 | ipc/msg.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 325 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 342 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 343 | ipc/msg.c | ipcp->mode = (msgflg & S_IRWXUGO); |
ipcp | 344 | ipc/msg.c | ipcp->key = key; |
ipcp | 345 | ipc/msg.c | ipcp->cuid = ipcp->uid = current->euid; |
ipcp | 346 | ipc/msg.c | ipcp->gid = ipcp->cgid = current->egid; |
ipcp | 431 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 509 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 513 | ipc/msg.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 527 | ipc/msg.c | if (!suser() && current->euid != ipcp->cuid && |
ipcp | 528 | ipc/msg.c | current->euid != ipcp->uid) |
ipcp | 533 | ipc/msg.c | ipcp->uid = tbuf.msg_perm.uid; |
ipcp | 534 | ipc/msg.c | ipcp->gid = tbuf.msg_perm.gid; |
ipcp | 535 | ipc/msg.c | ipcp->mode = (ipcp->mode & ~S_IRWXUGO) | |
ipcp | 540 | ipc/msg.c | if (!suser() && current->euid != ipcp->cuid && |
ipcp | 541 | 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 | 20 | ipc/shm.c | extern int ipcperms (struct ipc_perm *ipcp, short shmflg); |
ipcp | 207 | ipc/shm.c | struct ipc_perm *ipcp; |
ipcp | 286 | ipc/shm.c | ipcp = &shp->shm_perm; |
ipcp | 292 | ipc/shm.c | if (!(ipcp->mode & SHM_LOCKED)) |
ipcp | 294 | ipc/shm.c | ipcp->mode &= ~SHM_LOCKED; |
ipcp | 302 | ipc/shm.c | if (ipcp->mode & SHM_LOCKED) |
ipcp | 304 | ipc/shm.c | ipcp->mode |= SHM_LOCKED; |
ipcp | 307 | ipc/shm.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 327 | ipc/shm.c | ipcp->uid = tbuf.shm_perm.uid; |
ipcp | 328 | ipc/shm.c | ipcp->gid = tbuf.shm_perm.gid; |
ipcp | 329 | 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)) |