dns: make caching DNS server config files readable by everyone

All of the information in the configuration files for local caching
dnsmasq or BIND servers are accessible already over the D-Bus
interface, so there's no sensitive information here.
This commit is contained in:
Evan Broder 2012-01-30 11:59:05 -08:00 committed by Dan Williams
parent 775ec828b9
commit 8b107e9ee8
2 changed files with 2 additions and 2 deletions

View file

@ -413,7 +413,7 @@ update (NMDnsPlugin *plugin,
g_clear_error (&error);
goto out;
}
ignored = chmod (CONFFILE, 0600);
ignored = chmod (CONFFILE, 0644);
nm_log_dbg (LOGD_DNS, "BIND local caching DNS configuration:");
nm_log_dbg (LOGD_DNS, "%s", conf->str);

View file

@ -294,7 +294,7 @@ update (NMDnsPlugin *plugin,
g_clear_error (&error);
goto out;
}
ignored = chmod (CONFFILE, 0600);
ignored = chmod (CONFFILE, 0644);
nm_log_dbg (LOGD_DNS, "dnsmasq local caching DNS configuration:");
nm_log_dbg (LOGD_DNS, "%s", conf->str);