fix firejail-in-firejail test

This commit is contained in:
netblue30 2020-05-18 09:01:48 -04:00
parent ee43810533
commit e4249dec74

View file

@ -111,6 +111,13 @@ static void disable_file(OPERATION op, const char *filename) {
return;
}
// check for firejail executable
// we migth have a file found in ${PATH} pointing to /usr/bin/firejail
// blacklisting it here will end up breaking situations like user clicks on a link in Thunderbird
// and expects Firefox to open in the same sandbox
if (strcmp(BINDIR "/firejail", fname) == 0)
return;
// modify the file
if (op == BLACKLIST_FILE || op == BLACKLIST_NOLOG) {
// some distros put all executables under /usr/bin and make /bin a symbolic link