Skip to main content

Module sender

Module sender 

Source
Expand description

Who sent a CLI-native message, from the process id the CLI verified for the sender’s connection to the receiving session’s socket (SO_PEERCRED, in the frame’s origin.verifiedPeerPid).

Everything else in the message is the sender’s own words: its name, its address, its mode, its text. Any process of the same user can connect to a session’s socket and say what it likes, but none can choose the pid the kernel reports. So the sender is the agent whose CLI process that pid belongs to, or descends from, in srv’s own table, and a pid outside every agent is an outside session whatever name it gives.

Structs§

SystemProcs
The running system’s process table.

Enums§

Sender
What AgentMux knows about the process behind a message.

Traits§

ProcView
The parts of the process table the mapping reads.

Functions§

resolve
Maps the CLI-verified connecting process to a sender. cli_pids is srv’s (block, CLI process) table; proc_start the start time the CLI reported.