mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 17:30:09 +01:00
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:
parent
984b0763d9
commit
3bcd1c7495
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue