diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs_home.c | 2 | ||||
-rw-r--r-- | src/firejail/fs_whitelist.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/firejail/fs_home.c b/src/firejail/fs_home.c index 1c4f9e07e..0ed476063 100644 --- a/src/firejail/fs_home.c +++ b/src/firejail/fs_home.c | |||
@@ -610,8 +610,8 @@ void fs_private_home_list(void) { | |||
610 | EUID_ROOT(); | 610 | EUID_ROOT(); |
611 | if (bind_mount_path_to_fd(RUN_HOME_DIR, fd)) | 611 | if (bind_mount_path_to_fd(RUN_HOME_DIR, fd)) |
612 | errExit("mount bind"); | 612 | errExit("mount bind"); |
613 | close(fd); | ||
614 | EUID_USER(); | 613 | EUID_USER(); |
614 | close(fd); | ||
615 | 615 | ||
616 | // check /proc/self/mountinfo to confirm the mount is ok | 616 | // check /proc/self/mountinfo to confirm the mount is ok |
617 | MountData *mptr = get_last_mount(); | 617 | MountData *mptr = get_last_mount(); |
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c index 7588f69b7..943f275de 100644 --- a/src/firejail/fs_whitelist.c +++ b/src/firejail/fs_whitelist.c | |||
@@ -375,9 +375,8 @@ static void tmpfs_topdirs(const TopDir *topdirs) { | |||
375 | 375 | ||
376 | // user home directory | 376 | // user home directory |
377 | if (tmpfs_home) { | 377 | if (tmpfs_home) { |
378 | // checks owner if outside /home | ||
379 | EUID_USER(); | 378 | EUID_USER(); |
380 | fs_private(); | 379 | fs_private(); // checks owner if outside /home |
381 | EUID_ROOT(); | 380 | EUID_ROOT(); |
382 | } | 381 | } |
383 | 382 | ||