diff --git a/src/firejail/fs_hostname.c b/src/firejail/fs_hostname.c index 42255070c46..b228707131c 100644 --- a/src/firejail/fs_hostname.c +++ b/src/firejail/fs_hostname.c @@ -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; @@ -158,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;