Open tm4ig opened 11 months ago
blacklist does not work for new files and folders without firejail restart
firejail runs before the program starts, so there is no way to blacklist anything afterwards.
To prevent new files from appearing in the sandbox, whitelisting has to be used.
Description
Blacklist for [sub]folders (and files) does not work if they were created after start application.
Steps to Reproduce
Expected behavior
folder4 will be in blacklist without restart firejail.
Actual behavior
folder4 is not in blacklist:
But after restart firejail folder4 already in blacklist:
Behavior without a profile
"noprofile" doesn't change the situation.
Environment
Checklist
/usr/bin/vlc
) "fixes" it).https://github.com/netblue30/firejail/issues/1139
)browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.--profile=PROFILENAME
to set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/program
```console tm4ig@sinx ~ % LC_ALL=C firejail --noblacklist="~/test/folder1" --blacklist="~/test/*" /bin/bash Reading profile /etc/firejail/default.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc ** Note: you can use --noprofile to disable default.profile ** Parent pid 539573, child pid 539574 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: cleaning all supplementary groups Child process initialized in 31.66 ms ```
Output of
LC_ALL=C firejail --debug /path/to/program
[firejail.log](https://github.com/netblue30/firejail/files/13658144/firejail.log)