From 1469425b062d4454f5d5c74e68b1d39239fa770e Mon Sep 17 00:00:00 2001 From: smitsohu Date: Wed, 16 May 2018 15:57:22 +0200 Subject: x11 cleanup (remove superfluous set_perms) --- src/firejail/x11.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/firejail/x11.c b/src/firejail/x11.c index ec8775370..8de8c9ec7 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c @@ -1190,10 +1190,7 @@ void x11_xorg(void) { fprintf(stderr, "Error: cannot mount the new .Xauthority file\n"); exit(1); } - // just in case... - if (set_perms(dest, getuid(), getgid(), 0600)) - errExit("set_perms"); - + // check /proc/self/mountinfo to confirm the mount is ok MountData *mptr = get_last_mount(); if (strcmp(mptr->dir, dest) != 0) -- cgit v1.2.3-70-g09d2