diff options
Diffstat (limited to 'src/firejail/x11.c')
-rw-r--r-- | src/firejail/x11.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/x11.c b/src/firejail/x11.c index 985ca9337..300078872 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c | |||
@@ -173,6 +173,7 @@ void x11_start_xephyr(int argc, char **argv) { | |||
173 | fprintf(stderr, "Error: X11 sandboxing is not available when running as root\n"); | 173 | fprintf(stderr, "Error: X11 sandboxing is not available when running as root\n"); |
174 | exit(1); | 174 | exit(1); |
175 | } | 175 | } |
176 | drop_privs(0); | ||
176 | 177 | ||
177 | // check xephyr | 178 | // check xephyr |
178 | if (x11_check_xephyr() == 0) { | 179 | if (x11_check_xephyr() == 0) { |
@@ -295,6 +296,7 @@ void x11_start_xpra(int argc, char **argv) { | |||
295 | fprintf(stderr, "Error: X11 sandboxing is not available when running as root\n"); | 296 | fprintf(stderr, "Error: X11 sandboxing is not available when running as root\n"); |
296 | exit(1); | 297 | exit(1); |
297 | } | 298 | } |
299 | drop_privs(0); | ||
298 | 300 | ||
299 | // check xpra | 301 | // check xpra |
300 | if (x11_check_xpra() == 0) { | 302 | if (x11_check_xpra() == 0) { |