aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2019-11-28 11:35:37 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2019-11-28 11:35:37 +0100
commitc257037f5792adf142711545236db7329c0578b8 (patch)
tree5e07a60d3f413b7842f1aa606bb87843ae1b0ce2 /src
parentFix profile: ffmpeg (#3064) (diff)
downloadfirejail-c257037f5792adf142711545236db7329c0578b8.tar.gz
firejail-c257037f5792adf142711545236db7329c0578b8.tar.zst
firejail-c257037f5792adf142711545236db7329c0578b8.zip
fix interaction between private options and allusers option
Diffstat (limited to 'src')
-rw-r--r--src/firejail/fs_home.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/fs_home.c b/src/firejail/fs_home.c
index d09f92697..cfa0af078 100644
--- a/src/firejail/fs_home.c
+++ b/src/firejail/fs_home.c
@@ -315,7 +315,7 @@ void fs_private_homedir(void) {
315 errExit("mounting /root directory"); 315 errExit("mounting /root directory");
316 fs_logger("tmpfs /root"); 316 fs_logger("tmpfs /root");
317 } 317 }
318 if (u == 0 || strncmp(homedir, "/home/", 6) != 0) { 318 if (u == 0 && !arg_allusers) {
319 // mask /home 319 // mask /home
320 if (arg_debug) 320 if (arg_debug)
321 printf("Mounting a new /home directory\n"); 321 printf("Mounting a new /home directory\n");
@@ -606,7 +606,7 @@ void fs_private_home_list(void) {
606 errExit("mounting /root directory"); 606 errExit("mounting /root directory");
607 fs_logger("tmpfs /root"); 607 fs_logger("tmpfs /root");
608 } 608 }
609 if (uid == 0 || strncmp(homedir, "/home/", 6) != 0) { 609 if (uid == 0 && !arg_allusers) {
610 // mask /home 610 // mask /home
611 if (arg_debug) 611 if (arg_debug)
612 printf("Mounting a new /home directory\n"); 612 printf("Mounting a new /home directory\n");