From ff025c119c6e77074e7d101d4c644820418ac19f Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 11 Aug 2016 13:18:54 -0400 Subject: don't allow --x11 and --audit together --- src/firejail/x11.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/firejail/x11.c b/src/firejail/x11.c index 090ff6f3b..15d600991 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c @@ -216,6 +216,10 @@ void x11_start_xephyr(int argc, char **argv) { continue; if (strcmp(argv[i], "--x11=xephyr") == 0) continue; + if (strcmp(argv[i], "--audit") == 0 || strncmp(argv[i], "--audit=", 8) == 0) { + fprintf(stderr, "Error: auditing x11 sandboxes is not supported\n"); + exit(1); + } ptr += sprintf(ptr, "%s ", argv[i]); } if (arg_debug) @@ -335,6 +339,10 @@ void x11_start_xpra(int argc, char **argv) { continue; if (strcmp(argv[i], "--x11=xephyr") == 0) continue; + if (strcmp(argv[i], "--audit") == 0 || strncmp(argv[i], "--audit=", 8) == 0) { + fprintf(stderr, "Error: auditing x11 sandboxes is not supported\n"); + exit(1); + } ptr += sprintf(ptr, "%s ", argv[i]); } sprintf(ptr, "\""); -- cgit v1.2.3-54-g00ecf