Derive Macro privsep_derive::Privsep [−][src]
#[derive(Privsep)] { // Attributes available to this derive: #[connect] #[main_path] #[username] #[disable_privdrop] }
Expand description
Derive privsep processes from an enum.
Attributes:
connect
: Connect child with the specified peer.main_path
: Set the path of the parent or processmain
function.username
: Set the default or the per-process privdrop user.disable_privdrop
: disable privdrop for the program or process.