helperd

package
v0.7.0-rc.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: AGPL-3.0 Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

In one breath, the trust model is this. 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, so the audit trail of privileged operations survives a compromise of the admin account. Parameters are never logged, because some carry secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(version string) error

Serve is the `vpn helperd` entry point. version is the running binary's version. Self-update independently checks newer ordering and major-version compatibility against it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL