aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/x11.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2018-05-16 15:57:22 +0200
committerLibravatar GitHub <noreply@github.com>2018-05-16 15:57:22 +0200
commit1469425b062d4454f5d5c74e68b1d39239fa770e (patch)
tree3cddb6a3569ae8bbb5b8ac45d792d4f466e39cdf /src/firejail/x11.c
parent0.9.54 testing (diff)
downloadfirejail-1469425b062d4454f5d5c74e68b1d39239fa770e.tar.gz
firejail-1469425b062d4454f5d5c74e68b1d39239fa770e.tar.zst
firejail-1469425b062d4454f5d5c74e68b1d39239fa770e.zip
x11 cleanup (remove superfluous set_perms)
Diffstat (limited to 'src/firejail/x11.c')
-rw-r--r--src/firejail/x11.c5
1 files changed, 1 insertions, 4 deletions
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) {
1190 fprintf(stderr, "Error: cannot mount the new .Xauthority file\n"); 1190 fprintf(stderr, "Error: cannot mount the new .Xauthority file\n");
1191 exit(1); 1191 exit(1);
1192 } 1192 }
1193 // just in case... 1193
1194 if (set_perms(dest, getuid(), getgid(), 0600))
1195 errExit("set_perms");
1196
1197 // check /proc/self/mountinfo to confirm the mount is ok 1194 // check /proc/self/mountinfo to confirm the mount is ok
1198 MountData *mptr = get_last_mount(); 1195 MountData *mptr = get_last_mount();
1199 if (strcmp(mptr->dir, dest) != 0) 1196 if (strcmp(mptr->dir, dest) != 0)