mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 19:10:09 +01:00
Write keyfiles as euid / egid instead of 0 / 0 (root / root)
This commit is contained in:
parent
3783494dfe
commit
41db8c7563
1 changed files with 4 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libnm-core-intern/nm-keyfile-internal.h"
|
||||
|
|
@ -18,6 +19,7 @@
|
|||
#include "nms-keyfile-reader.h"
|
||||
|
||||
#include "libnm-glib-aux/nm-io-utils.h"
|
||||
#include "src/core/main-utils.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
|
@ -444,8 +446,8 @@ nms_keyfile_writer_connection(NMConnection *connection,
|
|||
keyfile_dir,
|
||||
profile_dir,
|
||||
TRUE,
|
||||
0,
|
||||
0,
|
||||
nm_main_utils_get_nm_uid(),
|
||||
nm_main_utils_get_nm_gid(),
|
||||
existing_path,
|
||||
existing_path_read_only,
|
||||
force_rename,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue