machined: add comment explaining access to machine objects a bit

This commit is contained in:
Lennart Poettering
2026-03-03 20:01:09 +01:00
committed by Mike Yuan
parent 6e0f0510d2
commit ec718b44a1
+11
View File
@@ -34,6 +34,17 @@ typedef enum KillWhom {
} KillWhom;
typedef struct Machine {
/* Note: machine objects registered with the --system instance can be allocated by privileged *and*
* unprivileged clients. We generally do this to make DNS-style name resolution work, and since
* that's a system-wide concept, the machine registrations need to be system-wide too.
*
* polkit manages access to machines registered by unprivileged clients. The general rule should be
* that local users (i.e. those with a seat) may register machines, and do basic interaction with
* their own machines without having to authenticate as administrator – however any more complex
* (such as: copying files in + out of a container; or logging in interactively) should only be
* available after administrator authentication, following the logic that users better use their own
* per-user instance of systemd-machined for that. */
Manager *manager;
char *name;