[vlc-devel] commit: X11: I don't want random local users accessing my videos! ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Jul 8 22:12:28 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 8 23:11:51 2009 +0300| [0e4d1695919d4fe47e18e0708825508f9abc68c6] | committer: Rémi Denis-Courmont
X11: I don't want random local users accessing my videos!
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e4d1695919d4fe47e18e0708825508f9abc68c6
---
modules/video_output/x11/xcommon.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/x11/xcommon.c b/modules/video_output/x11/xcommon.c
index de1c3bf..f76fb65 100644
--- a/modules/video_output/x11/xcommon.c
+++ b/modules/video_output/x11/xcommon.c
@@ -2956,9 +2956,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)" );
More information about the vlc-devel
mailing list