diff options
Diffstat (limited to 'src/firejail/fs_etc.c')
-rw-r--r-- | src/firejail/fs_etc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/firejail/fs_etc.c b/src/firejail/fs_etc.c index e58537e49..aa4d76431 100644 --- a/src/firejail/fs_etc.c +++ b/src/firejail/fs_etc.c | |||
@@ -265,9 +265,10 @@ void fs_private_dir_list(const char *private_dir, const char *private_run_dir, c | |||
265 | void fs_rebuild_etc(void) { | 265 | void fs_rebuild_etc(void) { |
266 | int have_dhcp = 1; | 266 | int have_dhcp = 1; |
267 | if (cfg.dns1 == NULL && !any_dhcp()) { | 267 | if (cfg.dns1 == NULL && !any_dhcp()) { |
268 | // this function has the effect that updates to files using rename(2) don't propagate into the sandbox | 268 | // Disabling this option ensures that updates to files using |
269 | // avoid this in the default setting, in order to not break /etc/resolv.conf (issue #5010) | 269 | // rename(2) propagate into the sandbox, in order to avoid |
270 | if (!checkcfg(CFG_ETC_NO_BLACKLISTED)) | 270 | // breaking /etc/resolv.conf (issue #5010). |
271 | if (!checkcfg(CFG_ETC_HIDE_BLACKLISTED)) | ||
271 | return; | 272 | return; |
272 | have_dhcp = 0; | 273 | have_dhcp = 0; |
273 | } | 274 | } |