Skip to content

Commit 69eeb9f

Browse files
gd-gitbk138
authored andcommitted
scan: limit access to shared memory segments to current user
1 parent a890f32 commit 69eeb9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/scan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **ximg_ptr, int w, int h,
320320

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

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

0 commit comments

Comments
 (0)