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.
This commit is contained in:
@@ -480,7 +480,7 @@ private_server_setup (NMDBusManager *self)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* Set up our main private DBus socket */
|
/* Set up our main private DBus socket */
|
||||||
if (mkdir (NMRUNDIR, 0700) == -1) {
|
if (mkdir (NMRUNDIR, 0755) == -1) {
|
||||||
if (errno != EEXIST)
|
if (errno != EEXIST)
|
||||||
nm_log_warn (LOGD_CORE, "Error creating directory \"%s\": %d (%s)", NMRUNDIR, errno, g_strerror (errno));
|
nm_log_warn (LOGD_CORE, "Error creating directory \"%s\": %d (%s)", NMRUNDIR, errno, g_strerror (errno));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user