Commit 9c2b79c8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

X11: I don't want random local users accessing my videos!

(cherry picked from commit 0e4d1695919d4fe47e18e0708825508f9abc68c6)
parent e2989313
......@@ -2920,9 +2920,8 @@ IMAGE_TYPE * CreateShmImage( vout_thread_t *p_vout,
return NULL;
}
/* Allocate shared memory segment - 0776 set the access permission
* rights (like umask), they are not yet supported by all X servers */
p_shm->shmid = shmget( IPC_PRIVATE, DATA_SIZE(p_image), IPC_CREAT | 0776 );
/* Allocate shared memory segment. */
p_shm->shmid = shmget( IPC_PRIVATE, DATA_SIZE(p_image), IPC_CREAT | 0600 );
if( p_shm->shmid < 0 )
{
msg_Err( p_vout, "cannot allocate shared image data (%m)" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment