tag | line | file | source code |
shm_perm | 6 | include/linux/shm.h | struct ipc_perm shm_perm; /* operation perms */ |
shm_perm | 58 | ipc/shm.c | if (key == shp->shm_perm.key) |
shm_perm | 104 | ipc/shm.c | shp->shm_perm.key = key; |
shm_perm | 105 | ipc/shm.c | shp->shm_perm.mode = (shmflg & S_IRWXUGO); |
shm_perm | 106 | ipc/shm.c | shp->shm_perm.cuid = shp->shm_perm.uid = current->euid; |
shm_perm | 107 | ipc/shm.c | shp->shm_perm.cgid = shp->shm_perm.gid = current->egid; |
shm_perm | 108 | ipc/shm.c | shp->shm_perm.seq = shm_seq; |
shm_perm | 143 | ipc/shm.c | if (shp->shm_perm.mode & SHM_DEST) |
shm_perm | 147 | ipc/shm.c | if (ipcperms (&shp->shm_perm, shmflg)) |
shm_perm | 149 | ipc/shm.c | return shp->shm_perm.seq*SHMMNI + id; |
shm_perm | 167 | ipc/shm.c | shp->shm_perm.seq++; /* for shmat */ |
shm_perm | 257 | ipc/shm.c | if (ipcperms (&shp->shm_perm, S_IRUGO)) |
shm_perm | 259 | ipc/shm.c | id = shmid + shp->shm_perm.seq * SHMMNI; |
shm_perm | 267 | ipc/shm.c | ipcp = &shp->shm_perm; |
shm_perm | 300 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
shm_perm | 301 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
shm_perm | 302 | ipc/shm.c | ipcp->uid = tbuf.shm_perm.uid; |
shm_perm | 303 | ipc/shm.c | ipcp->gid = tbuf.shm_perm.gid; |
shm_perm | 305 | ipc/shm.c | | (tbuf.shm_perm.mode & S_IRWXUGO); |
shm_perm | 311 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
shm_perm | 312 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
shm_perm | 313 | ipc/shm.c | shp->shm_perm.mode |= SHM_DEST; |
shm_perm | 433 | ipc/shm.c | if (ipcperms(&shp->shm_perm, shmflg & SHM_RDONLY ? S_IRUGO : S_IRUGO|S_IWUGO)) |
shm_perm | 435 | ipc/shm.c | if (shp->shm_perm.seq != shmid / SHMMNI) |
shm_perm | 441 | ipc/shm.c | if ((shp != shm_segs[id]) || (shp->shm_perm.seq != shmid / SHMMNI)) { |
shm_perm | 459 | ipc/shm.c | if (--shp->shm_nattch <= 0 && shp->shm_perm.mode & SHM_DEST) |
shm_perm | 503 | ipc/shm.c | if (--shp->shm_nattch <= 0 && shp->shm_perm.mode & SHM_DEST) |
shm_perm | 662 | ipc/shm.c | if (shp == IPC_UNUSED || shp == IPC_NOID || shp->shm_perm.mode & SHM_LOCKED ) { |