[PATCH 0/2] Fix tmpfile creation for MIT-SHM files

Keith Packard keithp at keithp.com
Wed Nov 20 12:05:48 PST 2013


Mark Kettenis <mark.kettenis at xs4all.nl> writes:

> I still think the X server should not be concerned with picking a
> suitable directory, but instead should use shm_open/shm_unlink...

shm_open has security problems, so it's just a non-starter.

> ...but some thought is required on how to use O_TMPFILE with shm_open.

I'd be more than willing to adopt a different API; I also hate picking a
directory inside the X server, but we obviously need it to be secure,
and would strongly prefer to use O_TMPFILE where available.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131120/82f2fdb8/attachment.pgp>


More information about the xorg-devel mailing list