aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 75c4b7da3..86e6b0949 100644
--- a/src/firejail/fs_home.c
+++ b/src/firejail/fs_home.c
@@ -291,7 +291,7 @@ void fs_private_homedir(void) {
291 errExit("mounting home directory"); 291 errExit("mounting home directory");
292 fs_logger("tmpfs /root"); 292 fs_logger("tmpfs /root");
293 } 293 }
294 else { 294 if (u == 0 || strncmp(homedir, "/home/", 6) != 0) {
295 // mask /home 295 // mask /home
296 if (arg_debug) 296 if (arg_debug)
297 printf("Mounting a new /home directory\n"); 297 printf("Mounting a new /home directory\n");
@@ -567,7 +567,7 @@ void fs_private_home_list(void) {
567 if (mount("tmpfs", "/root", "tmpfs", MS_NOSUID | MS_NODEV | MS_STRICTATIME, "mode=700,gid=0") < 0) 567 if (mount("tmpfs", "/root", "tmpfs", MS_NOSUID | MS_NODEV | MS_STRICTATIME, "mode=700,gid=0") < 0)
568 errExit("mounting home directory"); 568 errExit("mounting home directory");
569 } 569 }
570 else { 570 if (uid == 0 || strncmp(homedir, "/home/", 6) != 0) {
571 // mask /home 571 // mask /home
572 if (arg_debug) 572 if (arg_debug)
573 printf("Mounting a new /home directory\n"); 573 printf("Mounting a new /home directory\n");