mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-16 06:06:03 -06:00
fix firejail-in-firejail test
This commit is contained in:
parent
ee43810533
commit
e4249dec74
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue