pub struct Root {
pub elevation: Elevation,
pub proxy: Vec<String>,
}Expand description
How root steps run here: elevated as elevation says, with the proxy variables proxy
(NAME=value, proxy_assignments).
Fields§
§elevation: ElevationHow a step is elevated.
proxy: Vec<String>The proxy variables handed to it.
Implementations§
Source§impl Root
impl Root
Sourcepub fn step(&self, script: RootScript) -> Result<Step, Refusal>
pub fn step(&self, script: RootScript) -> Result<Step, Refusal>
script run as root. The proxy variables go in an owner-only file in a private folder
kept as long as the step, which the script reads right after its prelude: on pkexec’s
command line, which every local user can read (ps, /proc/<pid>/cmdline) while the
prompt is up, a proxy’s password would show.
§Errors
Refusal::PrivateFile when that file can’t be written.
Trait Implementations§
impl Eq for Root
impl StructuralPartialEq for Root
Auto Trait Implementations§
impl Forget for Root
impl Freeze for Root
impl Move for Root
impl RefUnwindSafe for Root
impl Send for Root
impl Sync for Root
impl Unpin for Root
impl UnsafeUnpin for Root
impl UnwindSafe for Root
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.