diff options
Diffstat (limited to 'src/firejail/sandbox.c')
-rw-r--r-- | src/firejail/sandbox.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index a4109cc17..88de1fc5f 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -848,8 +848,7 @@ int sandbox(void* sandbox_arg) { | |||
848 | fs_trace_touch_or_store_preload(); | 848 | fs_trace_touch_or_store_preload(); |
849 | 849 | ||
850 | // store hosts file | 850 | // store hosts file |
851 | if (cfg.hosts_file) | 851 | fs_store_hosts_file(); |
852 | fs_store_hosts_file(); | ||
853 | 852 | ||
854 | //**************************** | 853 | //**************************** |
855 | // configure filesystem | 854 | // configure filesystem |
@@ -986,11 +985,11 @@ int sandbox(void* sandbox_arg) { | |||
986 | //**************************** | 985 | //**************************** |
987 | // hosts and hostname | 986 | // hosts and hostname |
988 | //**************************** | 987 | //**************************** |
989 | if (cfg.hostname) | 988 | // if (cfg.hostname) |
990 | fs_hostname(cfg.hostname); | 989 | fs_hostname(); |
991 | 990 | ||
992 | if (cfg.hosts_file) | 991 | // if (cfg.hosts_file) |
993 | fs_mount_hosts_file(); | 992 | // fs_mount_hosts_file(); |
994 | 993 | ||
995 | //**************************** | 994 | //**************************** |
996 | // /etc overrides from the network namespace | 995 | // /etc overrides from the network namespace |