Skip to content

Commit

Permalink
remove hosts file link check
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Sep 19, 2021
1 parent ccc726f commit c2c51e7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/firejail/fs_hostname.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ void fs_mount_hosts_file(void) {
struct stat s;
if (stat("/etc/hosts", &s) == -1)
goto errexit;
// not a link
if (is_link("/etc/hosts"))
goto errexit;
// owned by root
if (s.st_uid != 0)
goto errexit;
Expand Down

0 comments on commit c2c51e7

Please sign in to comment.