Re: shmat -- wtf owns it?

From: William Lee Irwin III
Date: Sat Jan 24 2004 - 01:02:38 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/