Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsohu committed Jun 26, 2021
1 parent 46712f7 commit 0c2a5e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/firejail/fs_home.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ void fs_private_home_list(void) {
EUID_ROOT();
if (bind_mount_path_to_fd(RUN_HOME_DIR, fd))
errExit("mount bind");
close(fd);
EUID_USER();
close(fd);

// check /proc/self/mountinfo to confirm the mount is ok
MountData *mptr = get_last_mount();
Expand Down
3 changes: 1 addition & 2 deletions src/firejail/fs_whitelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,8 @@ static void tmpfs_topdirs(const TopDir *topdirs) {

// user home directory
if (tmpfs_home) {
// checks owner if outside /home
EUID_USER();
fs_private();
fs_private(); // checks owner if outside /home
EUID_ROOT();
}

Expand Down

0 comments on commit 0c2a5e3

Please sign in to comment.