DashboardopencodePTY supervisor MainPID authentication

PTY supervisor MainPID authentication

Category: architecture
Confidence: 1.00
ID: 01a07f7d-848a-7a0e-ae06-abb313b075b5
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 1NVyZh8FhrP3Z3Yh1
Created: 2026-09-08 04:21:04
Updated: 2026-09-08 05:28:47

Content

Chose connection-lifetime pidfd authentication plus an invocation-bound assertion immediately before StartTransientUnit over one-time SO_PEERCRED/PID checks because socket descriptors can be inherited or transferred and PIDs can be reused. Verify exact UID/GID, active systemd MainPID, InvocationID, and service cgroup; keep the CLOEXEC pidfd open through the privileged start. Peer credentials alone identify the original connector, not the process currently possessing a delegated connection.

Move to: