lkml.org 
[lkml]   [2000]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.3.51 -- I am still seeing the"shmget: shm filesystem not mounted" error
Bruno Haible wrote:
> > It's more secure too -- and it
> > properly fails if your X connection is via a proxy: the current shm
> > method can even cause the X server to connect to the _wrong_ shm segment
> > under some circumstances (multiple hosts, coincidental ids).
>
> This can easily be worked around: The creator of the segments puts a
> random number at the beginning of the segment, sort of a "signature",
> and when he communicates the shmid to other processes, he also tells
> them the signature. The attaching processes then check whether the
> signature they find in the segment is the same as the one they got
> communicated.

Yup, that's what I was thinking.

> This technique is employed in XFree86 4.0.

Great! I didn't think anyone actually bothered because other X shm code
I've seen doesn't do it, i.e. X shm clients.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.080 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site