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 | 63 | ipc/msg.c | if (ipcp->seq != (msqid / MSGMNI)) |
ipcp | 65 | ipc/msg.c | if (ipcperms(ipcp, S_IWUGO)) |
ipcp | 86 | ipc/msg.c | || ipcp->seq != msqid / MSGMNI) { |
ipcp | 115 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 132 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 141 | ipc/msg.c | if(ipcp->seq != msqid / MSGMNI) |
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 | 253 | ipc/msg.c | ipcp->seq = msg_seq; |
ipcp | 323 | ipc/msg.c | struct ipc_perm *ipcp; |
ipcp | 387 | ipc/msg.c | ipcp = &msq->msg_perm; |
ipcp | 388 | ipc/msg.c | if (ipcp->seq != msqid / MSGMNI) |
ipcp | 393 | ipc/msg.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 399 | ipc/msg.c | if (!suser() && current->euid != ipcp->cuid && |
ipcp | 400 | ipc/msg.c | current->euid != ipcp->uid) |
ipcp | 409 | ipc/msg.c | ipcp->uid = tbuf.msg_perm.uid; |
ipcp | 410 | ipc/msg.c | ipcp->gid = tbuf.msg_perm.gid; |
ipcp | 411 | ipc/msg.c | ipcp->mode = (ipcp->mode & ~S_IRWXUGO) | |
ipcp | 15 | ipc/sem.c | extern int ipcperms (struct ipc_perm *ipcp, short semflg); |
ipcp | 58 | ipc/sem.c | struct ipc_perm *ipcp; |
ipcp | 84 | ipc/sem.c | ipcp = &sma->sem_perm; |
ipcp | 85 | ipc/sem.c | ipcp->mode = (semflg & S_IRWXUGO); |
ipcp | 86 | ipc/sem.c | ipcp->key = key; |
ipcp | 87 | ipc/sem.c | ipcp->cuid = ipcp->uid = current->euid; |
ipcp | 88 | ipc/sem.c | ipcp->gid = ipcp->cgid = current->egid; |
ipcp | 89 | ipc/sem.c | ipcp->seq = sem_seq; |
ipcp | 155 | ipc/sem.c | struct ipc_perm *ipcp; |
ipcp | 214 | ipc/sem.c | ipcp = &sma->sem_perm; |
ipcp | 216 | ipc/sem.c | if (ipcp->seq != semid / SEMMNI) |
ipcp | 228 | ipc/sem.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 250 | ipc/sem.c | if (suser() || current->euid == ipcp->cuid || |
ipcp | 251 | ipc/sem.c | current->euid == ipcp->uid) { |
ipcp | 283 | ipc/sem.c | if (ipcp->seq != semid / SEMMNI) |
ipcp | 288 | ipc/sem.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 295 | ipc/sem.c | if (ipcperms (ipcp, S_IWUGO)) |
ipcp | 308 | ipc/sem.c | if (suser() || current->euid == ipcp->cuid || |
ipcp | 309 | ipc/sem.c | current->euid == ipcp->uid) { |
ipcp | 310 | ipc/sem.c | ipcp->uid = tbuf.sem_perm.uid; |
ipcp | 311 | ipc/sem.c | ipcp->gid = tbuf.sem_perm.gid; |
ipcp | 312 | ipc/sem.c | ipcp->mode = (ipcp->mode & ~S_IRWXUGO) |
ipcp | 319 | ipc/sem.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 324 | ipc/sem.c | if (ipcperms (ipcp, S_IWUGO)) |
ipcp | 16 | ipc/shm.c | extern int ipcperms (struct ipc_perm *ipcp, short semflg); |
ipcp | 199 | ipc/shm.c | struct ipc_perm *ipcp; |
ipcp | 268 | ipc/shm.c | ipcp = &shp->shm_perm; |
ipcp | 269 | ipc/shm.c | if (ipcp->seq != shmid / SHMMNI) |
ipcp | 276 | ipc/shm.c | if (!(ipcp->mode & SHM_LOCKED)) |
ipcp | 278 | ipc/shm.c | ipcp->mode &= ~SHM_LOCKED; |
ipcp | 286 | ipc/shm.c | if (ipcp->mode & SHM_LOCKED) |
ipcp | 288 | ipc/shm.c | ipcp->mode |= SHM_LOCKED; |
ipcp | 291 | ipc/shm.c | if (ipcperms (ipcp, S_IRUGO)) |
ipcp | 303 | ipc/shm.c | ipcp->uid = tbuf.shm_perm.uid; |
ipcp | 304 | ipc/shm.c | ipcp->gid = tbuf.shm_perm.gid; |
ipcp | 305 | ipc/shm.c | ipcp->mode = (ipcp->mode & ~S_IRWXUGO) |
ipcp | 20 | ipc/util.c | int ipcperms (struct ipc_perm *ipcp, short flag); |
ipcp | 47 | ipc/util.c | int ipcperms (struct ipc_perm *ipcp, short flag) |
ipcp | 54 | ipc/util.c | granted_mode = ipcp->mode; |
ipcp | 55 | ipc/util.c | if (current->euid == ipcp->cuid || current->euid == ipcp->uid) |
ipcp | 57 | ipc/util.c | else if (in_group_p(ipcp->cgid) || in_group_p(ipcp->gid)) |