| 1 | NetworkManager insists that plugins be root-owned. This is the case when running
|
| 2 | guix-daemon with root privileged, but not when running it unprivileged (in that case,
|
| 3 | file in the store belong to the 'guix-daemon' user.)
|
| 4 |
|
| 5 | Skip that test entirely since it doesn't provide any additional safety on Guix System.
|
| 6 |
|
| 7 | See <https://issues.guix.gnu.org/78047>.
|
| 8 |
|
| 9 | diff --git a/src/core/nm-core-utils.c b/src/core/nm-core-utils.c
|
| 10 | index 895a991..738f8c7 100644
|
| 11 | |
| 12 | |
| 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,
|