Skip to contentSkip to conversation

shmat -- wtf owns it?

DISCUSSION john moser 2 participants 2 messages Jan 24, 2004

lore
Share & tools
lore

john moser

author
#0 lore raw

Okay I've been back and forth through ipc/shm.c and shm.h about 3 or 4 times. Yes, rather cursory of me to not read it 40 times. But, seriously.

Who the FUCK owns a shm segment? I can't see a way to check the creator of a segment of shm in sys_shmat() in ipc/shm.c and I really tried too.

_____________________________________________________________
Linux.Net -->Open Source to everyone
Powered by Linare Corporation
http://www.linare.com/

#1 lore raw
Quoted 6 lines · john moser

Okay I've been back and forth through ipc/shm.c and shm.h about 3 or 4 times. Yes, rather cursory of me to not read it 40 times. But, seriously.
Who the FUCK owns a shm segment? I can't see a way to check the creator of a segment of shm in sys_shmat() in ipc/shm.c and I really tried too.

There are uid's and gid's associated with shm segments.

c.f. struct ipc_perm

-- wli