aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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");