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 50f4a42 commit ccc726f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/firejail/fs_hostname.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ char *fs_check_hosts_file(const char *fname) {
invalid_filename(fname);
char *rv = expand_home(fname, cfg.homedir);

// no a link
if (is_link(rv))
goto errexit;

// the user has read access to the file
if (access(rv, R_OK))
goto errexit;
Expand Down

0 comments on commit ccc726f

Please sign in to comment.