pub(crate) struct ExecBridge {
pub(crate) session_seq: u32,
pub(crate) procs: Vec<ExecProc>,
pub(crate) policy: ExecPolicy,
pub(crate) log_fd: Option<usize>,
}Fields§
§session_seq: u32§procs: Vec<ExecProc>§policy: ExecPolicy§log_fd: Option<usize>Implementations§
Source§impl ExecBridge
impl ExecBridge
Sourcepub(crate) fn new(policy_path: &'static str, log_fd: Option<usize>) -> Self
pub(crate) fn new(policy_path: &'static str, log_fd: Option<usize>) -> Self
Creates a new instance.
Sourcepub(crate) fn reload_policy(&mut self) -> bool
pub(crate) fn reload_policy(&mut self) -> bool
Implements reload policy.
Sourcepub(crate) fn terminate_all(&mut self)
pub(crate) fn terminate_all(&mut self)
Implements terminate all.
Sourcepub(crate) fn is_safe_exec_byte(b: u8) -> bool
pub(crate) fn is_safe_exec_byte(b: u8) -> bool
Returns whether safe exec byte.
Sourcepub(crate) fn parse_exec_plan(&self, command: &[u8]) -> Result<ExecPlan>
pub(crate) fn parse_exec_plan(&self, command: &[u8]) -> Result<ExecPlan>
Parses exec plan.
Sourcepub(crate) fn reap_exited(&mut self)
pub(crate) fn reap_exited(&mut self)
Implements reap exited.
Trait Implementations§
Source§impl ExecSessionProvider for ExecBridge
impl ExecSessionProvider for ExecBridge
Source§fn spawn_exec(
&mut self,
_username: &[u8],
command: &[u8],
) -> Result<ExecSessionWiring>
fn spawn_exec( &mut self, _username: &[u8], command: &[u8], ) -> Result<ExecSessionWiring>
Implements spawn exec.
Source§fn close_exec(&mut self, wiring: &ExecSessionWiring) -> Result<()>
fn close_exec(&mut self, wiring: &ExecSessionWiring) -> Result<()>
Closes exec.
Auto Trait Implementations§
impl Freeze for ExecBridge
impl RefUnwindSafe for ExecBridge
impl Send for ExecBridge
impl Sync for ExecBridge
impl Unpin for ExecBridge
impl UnsafeUnpin for ExecBridge
impl UnwindSafe for ExecBridge
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