David Powell wrote:
> John Martin wrote:
> > David Powell wrote:
> >> See http://www.opensolaris.org/os/project/rm/rctls/sysv/ for more
> >> information on this change.
> >
> > Interesting. So for Solaris, the X server process starts life as
> euid root
> > but after the user logs into the desktop, euid is switched to the user.
> > If I login as a non-root, which privilege category will the Xorg process
> > get for shm?
>
> I believe the X server runs in the user's project, so any allocations
> it performs will be against that project's quota.
When it switches UID on login, it makes the calls to run in the user's
default project as well.
> That said, it shouldn't matter since AFAIK all shared memory
> allocations are performed by the client, not the server.
For MIT-SHM, this is correct - the client creates the shared memory
segment, and tells the server to attach to it.
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering