39std::optional<ControlEndpointIdentity>
Definition agent_context.hpp:7
std::filesystem::path default_control_endpoint_path()
Deterministic LocalSocket endpoint for the control broker.
std::filesystem::path default_control_runtime_directory()
Deterministic owner-specific directory for the control carrier.
std::optional< ControlEndpointIdentity > control_endpoint_identity(const std::filesystem::path &endpoint_path)
Capture a socket only when its parent is private and its path is an owner-owned 0600 local endpoint.
bool remove_stale_control_endpoint(const std::filesystem::path &endpoint_path, const ControlEndpointIdentity &expected_identity)
Remove an endpoint only if its device and inode still match the identity captured before the caller's...
bool prepare_control_runtime_directory(const std::filesystem::path &runtime_directory)
Create or validate an absolute owner-only runtime directory.
Filesystem identity captured for an owner-private local socket endpoint.
Definition control_carrier.hpp:12
std::uint64_t device
Definition control_carrier.hpp:13
friend bool operator==(const ControlEndpointIdentity &, const ControlEndpointIdentity &)=default
std::uint64_t inode
Definition control_carrier.hpp:14