projects/guix·blob python-team · refs

27 lines · 1.0 KiB

1NetworkManager insists that plugins be root-owned. This is the case when running
2guix-daemon with root privileged, but not when running it unprivileged (in that case,
3file in the store belong to the 'guix-daemon' user.)
4
5Skip that test entirely since it doesn't provide any additional safety on Guix System.
6
7See <https://issues.guix.gnu.org/78047>.
8
9diff --git a/src/core/nm-core-utils.c b/src/core/nm-core-utils.c
10index 895a991..738f8c7 100644
11--- a/src/core/nm-core-utils.c
12+++ b/src/core/nm-core-utils.c
13@@ -4319,14 +4319,6 @@ nm_utils_validate_plugin(const char *path, struct stat *st, GError **error)
14 return FALSE;
15 }
16
17- if (st->st_uid != 0) {
18- g_set_error_literal(error,
19- NM_UTILS_ERROR,
20- NM_UTILS_ERROR_UNKNOWN,
21- "file has invalid owner (should be root)");
22- return FALSE;
23- }
24-
25 if (st->st_mode & (S_IWGRP | S_IWOTH | S_ISUID)) {
26 g_set_error_literal(error,
27 NM_UTILS_ERROR,