2004-01-24 05:53:31

by john moser

[permalink] [raw]
Subject: shmat -- wtf owns it?

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/


2004-01-24 06:00:12

by William Lee Irwin III

[permalink] [raw]
Subject: Re: shmat -- wtf owns it?

On Fri, Jan 23, 2004 at 09:53:28PM -0800, john moser wrote:
> 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