Skip to main content

Crate arcbox_helper

Crate arcbox_helper 

Source
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§

HelperServiceClient
The client stub that makes RPC calls to the server. All request methods return Futures.
ServeHelperService
A serving function to use with ::tarpc::server::InFlightRequest::execute.

Enums§

HelperServiceRequest
The request sent over the wire from the client to the server.
HelperServiceResponse
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/hosts line the helper manages. The trailing comment tags the line so uninstall removes exactly what was installed.
HOSTS_ALIAS_NAME
Host name the managed /etc/hosts alias resolves to loopback.

Traits§

HelperService
The tarpc service definition for privileged host mutations.
HelperServiceStub
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.