Expand description
arcbox-helper shared types and client.
This library defines the tarpc service interface for the privileged helper
daemon and provides a high-level client::Client for consumers
(arcbox-core, arcbox-daemon).
Modules§
- client
- High-level client for communicating with the arcbox-helper daemon.
- validate
- Input validation for setuid defense-in-depth.
Structs§
- Helper
Service Client - The client stub that makes RPC calls to the server. All request methods return Futures.
- Serve
Helper Service - A serving function to use with ::tarpc::server::InFlightRequest::execute.
Enums§
- Helper
Service Request - The request sent over the wire from the client to the server.
- Helper
Service Response - The response sent over the wire from the server to the client.
Constants§
- HELPER_
SOCKET - Unix socket path where the helper daemon listens.
- HELPER_
SOCKET_ ENV - Override the socket path for development/testing.
- HOSTS_
ALIAS_ LINE - The one
/etc/hostsline the helper manages. The trailing comment tags the line so uninstall removes exactly what was installed. - HOSTS_
ALIAS_ NAME - Host name the managed
/etc/hostsalias resolves to loopback.
Traits§
- Helper
Service - The tarpc service definition for privileged host mutations.
- Helper
Service Stub - The stub trait for service
HelperService.
Functions§
- hosts_
alias_ installed - True when
hosts_content(the text of/etc/hosts) carries the managed alias line. Shared by the helper mutation, the daemon’s self-setup check, and the NFS mount’s source selection. - socket_
path - Returns the effective socket path, checking the env override first.