aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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