aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2020-05-18 09:01:48 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2020-05-18 09:01:48 -0400
commite4249dec74a83b6564d9dda19ed069ee438cf4b0 (patch)
tree4332d90ad31e688480ba2d3a8545b82a4786c500
parentfix make depencies (diff)
downloadfirejail-e4249dec74a83b6564d9dda19ed069ee438cf4b0.tar.gz
firejail-e4249dec74a83b6564d9dda19ed069ee438cf4b0.tar.zst
firejail-e4249dec74a83b6564d9dda19ed069ee438cf4b0.zip
fix firejail-in-firejail test
-rw-r--r--src/firejail/fs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index b906f3047..2000ffc62 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -111,6 +111,13 @@ static void disable_file(OPERATION op, const char *filename) {
111 return; 111 return;
112 } 112 }
113 113
114 // check for firejail executable
115 // we migth have a file found in ${PATH} pointing to /usr/bin/firejail
116 // blacklisting it here will end up breaking situations like user clicks on a link in Thunderbird
117 // and expects Firefox to open in the same sandbox
118 if (strcmp(BINDIR "/firejail", fname) == 0)
119 return;
120
114 // modify the file 121 // modify the file
115 if (op == BLACKLIST_FILE || op == BLACKLIST_NOLOG) { 122 if (op == BLACKLIST_FILE || op == BLACKLIST_NOLOG) {
116 // some distros put all executables under /usr/bin and make /bin a symbolic link 123 // some distros put all executables under /usr/bin and make /bin a symbolic link