Documentation
¶
Overview ¶
Package helperd is the root side of the node's privilege boundary: `vpn helperd`, a socket-activated service that executes a fixed menu of privileged operations ("verbs") for the unprivileged admin user.
The trust model, in one breath: systemd owns the unix socket at /run/vpn-helperd.sock and creates its node root:vpn 0660 before this process ever runs, so only root and the admin user can connect — the socket's permissions are the authentication. On top of that, every accepted connection is re-identified with SO_PEERCRED (a kernel statement about the connecting process, not a client claim) and refused unless the peer uid is the admin user or root. What a connection can then do is bounded by the verb menu: there is no verb that runs a caller-supplied command line and no verb that returns a caller-chosen file.
Lifecycle: systemd starts this process when a connection arrives and passes it the listening socket. Connections are served ONE AT A TIME — privileged mutations are serialized by construction, and a second client simply waits in the kernel's queue. After 120 seconds with no connection the process exits; the socket stays, and the next connection starts a fresh helper. The timer only ever runs between connections, so no in-flight operation can be cut short by it. 120 seconds is an engineering constant, not a security control: it sits far above systemd's default start-rate limit (5 starts per 10 seconds) so that normal use can never trip rate limiting — at worst the helper is started once per idle period — while a quiet box still runs no resident root process. See the unit files the installer writes for the systemd half of this arrangement.
Every verb call and outcome is logged to stdout, which journald captures under the vpn-helperd unit. The admin user can read that record (systemd-journal group) but cannot rewrite it — the audit trail of privileged operations survives a compromise of the admin account. Parameters are never logged: some carry secrets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.