summaryrefslogtreecommitdiffstats
path: root/src/faudit
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-10-01 13:50:58 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-10-01 13:50:58 -0400
commit27bffbfeb2295f7d460f78dd93e02aa2f9b0a00c (patch)
treeda675f6056ea3e4dd2386c447c6eca0c072ac252 /src/faudit
parentpotential Gentoo fix (diff)
downloadfirejail-27bffbfeb2295f7d460f78dd93e02aa2f9b0a00c.tar.gz
firejail-27bffbfeb2295f7d460f78dd93e02aa2f9b0a00c.tar.zst
firejail-27bffbfeb2295f7d460f78dd93e02aa2f9b0a00c.zip
disable x11 abstract socket for --x11=block
Diffstat (limited to 'src/faudit')
-rw-r--r--src/faudit/dbus.c6
-rw-r--r--src/faudit/x11.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/faudit/dbus.c b/src/faudit/dbus.c
index d17d3922a..4debf2ff6 100644
--- a/src/faudit/dbus.c
+++ b/src/faudit/dbus.c
@@ -79,10 +79,8 @@ void dbus_test(void) {
79 else if (rv == -1) 79 else if (rv == -1)
80 printf("GOOD: cannot connect to D-Bus socket %s\n", sockfile); 80 printf("GOOD: cannot connect to D-Bus socket %s\n", sockfile);
81 } 81 }
82 else if ((sockfile = strstr(bus, "tcp:host=")) != NULL) { 82 else if ((sockfile = strstr(bus, "tcp:host=")) != NULL)
83 printf("UGLY: session bus configured for TCPcommunication.\n"); 83 printf("UGLY: session bus configured for TCP communication.\n");
84 rv = -2;
85 }
86 else 84 else
87 printf("GOOD: cannot find a D-Bus socket\n"); 85 printf("GOOD: cannot find a D-Bus socket\n");
88 86
diff --git a/src/faudit/x11.c b/src/faudit/x11.c
index e1a4bf66e..43f40f4e9 100644
--- a/src/faudit/x11.c
+++ b/src/faudit/x11.c
@@ -35,8 +35,9 @@ void x11_test(void) {
35 if (!(dir = opendir("/tmp/.X11-unix"))) { 35 if (!(dir = opendir("/tmp/.X11-unix"))) {
36 // sleep 2 seconds and try again 36 // sleep 2 seconds and try again
37 sleep(2); 37 sleep(2);
38 if (!(dir = opendir("/tmp/.X11-unix"))) 38 if (!(dir = opendir("/tmp/.X11-unix"))) {
39 ; 39 ;
40 }
40 } 41 }
41 42
42 if (dir == NULL) 43 if (dir == NULL)