tag | line | file | source code |
shm_perm | 9 | include/linux/shm.h | struct ipc_perm shm_perm; /* operation perms */ |
shm_perm | 65 | ipc/shm.c | if (key == shp->shm_perm.key) |
shm_perm | 111 | ipc/shm.c | shp->shm_perm.key = key; |
shm_perm | 112 | ipc/shm.c | shp->shm_perm.mode = (shmflg & S_IRWXUGO); |
shm_perm | 113 | ipc/shm.c | shp->shm_perm.cuid = shp->shm_perm.uid = current->euid; |
shm_perm | 114 | ipc/shm.c | shp->shm_perm.cgid = shp->shm_perm.gid = current->egid; |
shm_perm | 115 | ipc/shm.c | shp->shm_perm.seq = shm_seq; |
shm_perm | 130 | ipc/shm.c | return (unsigned int) shp->shm_perm.seq * SHMMNI + id; |
shm_perm | 150 | ipc/shm.c | if (shp->shm_perm.mode & SHM_DEST) |
shm_perm | 154 | ipc/shm.c | if (ipcperms (&shp->shm_perm, shmflg)) |
shm_perm | 156 | ipc/shm.c | return (unsigned int) shp->shm_perm.seq * SHMMNI + id; |
shm_perm | 173 | ipc/shm.c | shp->shm_perm.seq++; /* for shmat */ |
shm_perm | 266 | ipc/shm.c | if (ipcperms (&shp->shm_perm, S_IRUGO)) |
shm_perm | 268 | ipc/shm.c | id = (unsigned int) shp->shm_perm.seq * SHMMNI + shmid; |
shm_perm | 269 | ipc/shm.c | tbuf.shm_perm = shp->shm_perm; |
shm_perm | 284 | ipc/shm.c | if (shp->shm_perm.seq != (unsigned int) shmid / SHMMNI) |
shm_perm | 286 | ipc/shm.c | ipcp = &shp->shm_perm; |
shm_perm | 314 | ipc/shm.c | tbuf.shm_perm = shp->shm_perm; |
shm_perm | 325 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
shm_perm | 326 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
shm_perm | 327 | ipc/shm.c | ipcp->uid = tbuf.shm_perm.uid; |
shm_perm | 328 | ipc/shm.c | ipcp->gid = tbuf.shm_perm.gid; |
shm_perm | 330 | ipc/shm.c | | (tbuf.shm_perm.mode & S_IRWXUGO); |
shm_perm | 336 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
shm_perm | 337 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
shm_perm | 338 | ipc/shm.c | shp->shm_perm.mode |= SHM_DEST; |
shm_perm | 504 | ipc/shm.c | if (ipcperms(&shp->shm_perm, shmflg & SHM_RDONLY ? S_IRUGO : S_IRUGO|S_IWUGO)) |
shm_perm | 506 | ipc/shm.c | if (shp->shm_perm.seq != (unsigned int) shmid / SHMMNI) |
shm_perm | 512 | ipc/shm.c | if ((shp != shm_segs[id]) || (shp->shm_perm.seq != (unsigned int) shmid / SHMMNI)) { |
shm_perm | 532 | ipc/shm.c | if (--shp->shm_nattch <= 0 && shp->shm_perm.mode & SHM_DEST) |
shm_perm | 582 | ipc/shm.c | if (--shp->shm_nattch <= 0 && shp->shm_perm.mode & SHM_DEST) |
shm_perm | 694 | ipc/shm.c | if (shp == IPC_UNUSED || shp == IPC_NOID || shp->shm_perm.mode & SHM_LOCKED ) { |