Commit 0e4d1695 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent 84beaff6
...@@ -2956,9 +2956,8 @@ IMAGE_TYPE * CreateShmImage( vout_thread_t *p_vout, ...@@ -2956,9 +2956,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