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

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

(cherry picked from commit 0e4d1695)
parent e2989313
...@@ -2920,9 +2920,8 @@ IMAGE_TYPE * CreateShmImage( vout_thread_t *p_vout, ...@@ -2920,9 +2920,8 @@ IMAGE_TYPE * CreateShmImage( vout_thread_t *p_vout,
return NULL; return NULL;
} }
/* Allocate shared memory segment - 0776 set the access permission /* Allocate shared memory segment. */
* rights (like umask), they are not yet supported by all X servers */ p_shm->shmid = shmget( IPC_PRIVATE, DATA_SIZE(p_image), IPC_CREAT | 0600 );
p_shm->shmid = shmget( IPC_PRIVATE, DATA_SIZE(p_image), IPC_CREAT | 0776 );
if( p_shm->shmid < 0 ) if( p_shm->shmid < 0 )
{ {
msg_Err( p_vout, "cannot allocate shared image data (%m)" ); 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