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