aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/sandbox.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index 51ca2daf5..6075fe23e 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -237,9 +237,14 @@ int sandbox(void* sandbox_arg) {
237 //**************************** 237 //****************************
238 if (cfg.profile) { 238 if (cfg.profile) {
239 // apply all whitelist commands ... 239 // apply all whitelist commands ...
240 if (arg_whitelist) 240 if (arg_whitelist) {
241 fs_whitelist(); 241 // whitelist commands are disabled if --private or --private-home option is present
242 242 if (arg_private == 0)
243 fs_whitelist();
244 else
245 fprintf(stderr, "Warning: whitelists disabled by private or private-home\n");
246 }
247
243 // ... followed by blacklist commands 248 // ... followed by blacklist commands
244 fs_blacklist(); 249 fs_blacklist();
245 } 250 }