From bdf44029665d564dd31098e03aeb828d2932468c Mon Sep 17 00:00:00 2001 From: rusty-snake <41237666+rusty-snake@users.noreply.github.com> Date: Sat, 19 Dec 2020 10:54:32 +0100 Subject: x11=none: don't fail on abstract socket if netns … MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …is used. fix #3838 -- --x11=none --netns=isolated invalidly errors on the abstract X11 socket being accessible --- src/firejail/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/firejail/x11.c b/src/firejail/x11.c index e10abad4e..4872a5207 100644 --- a/src/firejail/x11.c +++ b/src/firejail/x11.c @@ -1368,7 +1368,7 @@ void fs_x11(void) { void x11_block(void) { #ifdef HAVE_X11 // check abstract socket presence and network namespace options - if ((!arg_nonetwork && !cfg.bridge0.configured && !cfg.interface0.configured) + if ((!arg_nonetwork && !arg_netns && !cfg.bridge0.configured && !cfg.interface0.configured) && x11_abstract_sockets_present()) { fprintf(stderr, "ERROR: --x11=none specified, but abstract X11 socket still accessible.\n" "Additional setup required. To block abstract X11 socket you can either:\n" -- cgit v1.2.3-54-g00ecf