From ccc726f8ec877d8cda720daa2498e43629b6dd48 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sun, 19 Sep 2021 11:48:06 +0200 Subject: remove hosts file link check --- src/firejail/fs_hostname.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/firejail/fs_hostname.c b/src/firejail/fs_hostname.c index 42255070c..97ce70f9c 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; -- cgit v1.2.3-54-g00ecf