diff options
author | smitsohu <smitsohu@gmail.com> | 2018-05-16 15:57:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 15:57:22 +0200 |
commit | 1469425b062d4454f5d5c74e68b1d39239fa770e (patch) | |
tree | 3cddb6a3569ae8bbb5b8ac45d792d4f466e39cdf /src | |
parent | 0.9.54 testing (diff) | |
download | firejail-1469425b062d4454f5d5c74e68b1d39239fa770e.tar.gz firejail-1469425b062d4454f5d5c74e68b1d39239fa770e.tar.zst firejail-1469425b062d4454f5d5c74e68b1d39239fa770e.zip |
x11 cleanup (remove superfluous set_perms)
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/x11.c | 5 |
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) |