aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Jonas Heinrich <onny@project-insanity.org>2021-09-19 11:48:06 +0200
committerLibravatar Jonas Heinrich <onny@project-insanity.org>2021-09-19 11:48:06 +0200
commitccc726f8ec877d8cda720daa2498e43629b6dd48 (patch)
tree10124c14d17ae56425141c5e56683381a2c033fe
parentfldd fixes (diff)
downloadfirejail-ccc726f8ec877d8cda720daa2498e43629b6dd48.tar.gz
firejail-ccc726f8ec877d8cda720daa2498e43629b6dd48.tar.zst
firejail-ccc726f8ec877d8cda720daa2498e43629b6dd48.zip
remove hosts file link check
-rw-r--r--src/firejail/fs_hostname.c4
1 files changed, 0 insertions, 4 deletions
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) {
132 invalid_filename(fname); 132 invalid_filename(fname);
133 char *rv = expand_home(fname, cfg.homedir); 133 char *rv = expand_home(fname, cfg.homedir);
134 134
135 // no a link
136 if (is_link(rv))
137 goto errexit;
138
139 // the user has read access to the file 135 // the user has read access to the file
140 if (access(rv, R_OK)) 136 if (access(rv, R_OK))
141 goto errexit; 137 goto errexit;