From 8b107e9ee8b301dca12e85215c1a7edf1fa7ff7f Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Mon, 30 Jan 2012 11:59:05 -0800 Subject: [PATCH] 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. --- src/dns-manager/nm-dns-bind.c | 2 +- src/dns-manager/nm-dns-dnsmasq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dns-manager/nm-dns-bind.c b/src/dns-manager/nm-dns-bind.c index 55fce030c4..1a3243be89 100644 --- a/src/dns-manager/nm-dns-bind.c +++ b/src/dns-manager/nm-dns-bind.c @@ -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); diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c index a602c54fa6..e44513be36 100644 --- a/src/dns-manager/nm-dns-dnsmasq.c +++ b/src/dns-manager/nm-dns-dnsmasq.c @@ -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);