diff options
Diffstat (limited to 'src/firejail/sandbox.c')
-rw-r--r-- | src/firejail/sandbox.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 53782a288..41fc20084 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -232,8 +232,14 @@ int sandbox(void* sandbox_arg) { | |||
232 | //**************************** | 232 | //**************************** |
233 | // apply the profile file | 233 | // apply the profile file |
234 | //**************************** | 234 | //**************************** |
235 | if (cfg.profile) | 235 | if (cfg.profile) { |
236 | fs_blacklist(cfg.homedir); | 236 | // apply all whitelist commands ... |
237 | if (arg_whitelist) | ||
238 | fs_whitelist(); | ||
239 | |||
240 | // ... followed by blacklist commands | ||
241 | fs_blacklist(); | ||
242 | } | ||
237 | 243 | ||
238 | //**************************** | 244 | //**************************** |
239 | // private mode | 245 | // private mode |