Skip to content

Commit

Permalink
scan: limit access to shared memory segments to current user
Browse files Browse the repository at this point in the history
  • Loading branch information
gd-git authored and bk138 committed Nov 18, 2020
1 parent a890f32 commit 69eeb9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scan.c
Expand Up @@ -320,7 +320,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h,

#if HAVE_XSHM
shm->shmid = shmget(IPC_PRIVATE,
xim->bytes_per_line * xim->height, IPC_CREAT | 0777);
xim->bytes_per_line * xim->height, IPC_CREAT | 0600);

if (shm->shmid == -1) {
rfbErr("shmget(%s) failed.\n", name);
Expand Down

0 comments on commit 69eeb9f

Please sign in to comment.