aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/fs_hostname.c2
-rw-r--r--src/firejail/sandbox.c4
-rw-r--r--src/fnettrace/static-ip-map.txt1
3 files changed, 2 insertions, 5 deletions
diff --git a/src/firejail/fs_hostname.c b/src/firejail/fs_hostname.c
index cddf3c903..29f805e1a 100644
--- a/src/firejail/fs_hostname.c
+++ b/src/firejail/fs_hostname.c
@@ -152,7 +152,7 @@ void fs_mount_hosts_file(void) {
152 // check /etc/hosts file 152 // check /etc/hosts file
153 struct stat s; 153 struct stat s;
154 if (stat("/etc/hosts", &s) == -1) 154 if (stat("/etc/hosts", &s) == -1)
155 goto errexit; 155 return;
156 // owned by root 156 // owned by root
157 if (s.st_uid != 0) 157 if (s.st_uid != 0)
158 goto errexit; 158 goto errexit;
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index 19ac8d9ec..9eb476f16 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -987,12 +987,8 @@ int sandbox(void* sandbox_arg) {
987 //**************************** 987 //****************************
988 // hosts and hostname 988 // hosts and hostname
989 //**************************** 989 //****************************
990// if (cfg.hostname)
991 fs_hostname(); 990 fs_hostname();
992 991
993// if (cfg.hosts_file)
994// fs_mount_hosts_file();
995
996 //**************************** 992 //****************************
997 // /etc overrides from the network namespace 993 // /etc overrides from the network namespace
998 //**************************** 994 //****************************
diff --git a/src/fnettrace/static-ip-map.txt b/src/fnettrace/static-ip-map.txt
index 92c55d148..2742e71c5 100644
--- a/src/fnettrace/static-ip-map.txt
+++ b/src/fnettrace/static-ip-map.txt
@@ -359,6 +359,7 @@
359172.105.128.0/23 Linode 359172.105.128.0/23 Linode
360 360
361# Akamai 361# Akamai
3622.16.0.0/13 Akamai
36223.0.0.0/12 Akamai 36323.0.0.0/12 Akamai
36323.32.0.0/11 Akamai 36423.32.0.0/11 Akamai
36423.64.0.0/14 Akamai 36523.64.0.0/14 Akamai