summaryrefslogtreecommitdiffstats
path: root/src/machine/machined-varlink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-05-11 20:18:56 +0200
committerLennart Poettering <lennart@poettering.net>2024-06-21 17:38:23 +0200
commit38a7666df317b26a355a8c2e0332bd79312f30f6 (patch)
tree60d1f2b22a5df929b60e4cd9d28d34fd932c3d70 /src/machine/machined-varlink.c
parentcryptsetup: minor coding style tweaks (diff)
downloadsystemd-38a7666df317b26a355a8c2e0332bd79312f30f6.tar.xz
systemd-38a7666df317b26a355a8c2e0332bd79312f30f6.zip
machined: allow unprivileged registration of VMs/containers
Now that we have a concept of unprivileged VMs and containers, let's allow unprivileged clients to register with machined too – subject to Polkit permissions.
Diffstat (limited to 'src/machine/machined-varlink.c')
-rw-r--r--src/machine/machined-varlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machined-varlink.c b/src/machine/machined-varlink.c
index dc35877c49..bd092bb282 100644
--- a/src/machine/machined-varlink.c
+++ b/src/machine/machined-varlink.c
@@ -433,7 +433,7 @@ static int manager_varlink_init_machine(Manager *m) {
if (m->varlink_machine_server)
return 0;
- r = varlink_server_new(&s, VARLINK_SERVER_ROOT_ONLY|VARLINK_SERVER_INHERIT_USERDATA);
+ r = varlink_server_new(&s, VARLINK_SERVER_ACCOUNT_UID|VARLINK_SERVER_INHERIT_USERDATA);
if (r < 0)
return log_error_errno(r, "Failed to allocate varlink server object: %m");