From 3bcd1c7495cb0d4e3669ce20da822057875daccb Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 7 Jan 2015 16:03:02 -0600 Subject: [PATCH] dbus: fix NMRUNDIR permissions on create This is really a no-op because the directory will be created by nm_main_utils_check_pidfile() anyway, but make sure the permissions are synchronized. Now that resolv.conf is symlink into NMRUNDIR, if normal users don't have permissions to read NMRUNDIR then DNS won't work. --- src/nm-dbus-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-dbus-manager.c b/src/nm-dbus-manager.c index 1cceb9b51..8923da02e 100644 --- a/src/nm-dbus-manager.c +++ b/src/nm-dbus-manager.c @@ -480,7 +480,7 @@ private_server_setup (NMDBusManager *self) return; /* Set up our main private DBus socket */ - if (mkdir (NMRUNDIR, 0700) == -1) { + if (mkdir (NMRUNDIR, 0755) == -1) { if (errno != EEXIST) nm_log_warn (LOGD_CORE, "Error creating directory \"%s\": %d (%s)", NMRUNDIR, errno, g_strerror (errno)); }