[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:15:31 CEST 2009
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 8 23:14:50 2009 +0300| [e795ffaf29c7ec541d9cb8cc611fded4ad0e11d0] | committer: Rémi Denis-Courmont
X11: I don't want random local users accessing my videos!
(cherry picked from commit 0e4d1695919d4fe47e18e0708825508f9abc68c6)
Conflicts:
modules/video_output/x11/xcommon.c
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e795ffaf29c7ec541d9cb8cc611fded4ad0e11d0
---
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 d239137..f54ea13 100644
--- a/modules/video_output/x11/xcommon.c
+++ b/modules/video_output/x11/xcommon.c
@@ -2869,9 +2869,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