aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-01-16 09:23:21 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-01-16 09:29:47 -0300
commitbfb8f0e0ca243d572a47288a561b5fd05445d9a4 (patch)
treec2356f70f631640de2d34d870576f787b5dfb046 /src
parentRename etc-no-blacklisted to etc-hide-blacklisted (diff)
downloadfirejail-bfb8f0e0ca243d572a47288a561b5fd05445d9a4.tar.gz
firejail-bfb8f0e0ca243d572a47288a561b5fd05445d9a4.tar.zst
firejail-bfb8f0e0ca243d572a47288a561b5fd05445d9a4.zip
Reword CFG_ETC_HIDE_BLACKLISTED explanation
To make it clearer. Added on commit ded50200e ("opt-in: skip blacklisted files in private-etc - #5010, #5230", 2023-01-15) / PR #5591.
Diffstat (limited to 'src')
-rw-r--r--src/firejail/fs_etc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/firejail/fs_etc.c b/src/firejail/fs_etc.c
index dcbd297da..aa4d76431 100644
--- a/src/firejail/fs_etc.c
+++ b/src/firejail/fs_etc.c
@@ -265,8 +265,9 @@ void fs_private_dir_list(const char *private_dir, const char *private_run_dir, c
265void fs_rebuild_etc(void) { 265void 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 // breaking /etc/resolv.conf (issue #5010).
270 if (!checkcfg(CFG_ETC_HIDE_BLACKLISTED)) 271 if (!checkcfg(CFG_ETC_HIDE_BLACKLISTED))
271 return; 272 return;
272 have_dhcp = 0; 273 have_dhcp = 0;