pub struct SystemState {
pub subject: ResolvedSubject,
pub walk: Vec<PathComponent>,
pub mounts: MountTable,
pub operation: Operation,
pub mac_state: MacState,
}Expand description
Complete gathered state for a single permission query.
Built by gathering layer, consumed by check pipeline. Contains resolved subject, path walk, mount table, and Requested operation.
Fields§
§subject: ResolvedSubjectResolved identity performing the operation.
walk: Vec<PathComponent>Path components from / to target, each with own permissions.
mounts: MountTableMount entries (metadata from mountinfo, flags from statvfs()).
operation: OperationOperation being checked.
mac_state: MacStateMAC layer state (SELinux and AppArmor), pre-gathered before pipeline runs.
Trait Implementations§
Source§impl Clone for SystemState
impl Clone for SystemState
Source§fn clone(&self) -> SystemState
fn clone(&self) -> SystemState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemState
impl Debug for SystemState
Source§impl PartialEq for SystemState
impl PartialEq for SystemState
Source§impl Serialize for SystemState
impl Serialize for SystemState
impl Eq for SystemState
impl StructuralPartialEq for SystemState
Auto Trait Implementations§
impl Freeze for SystemState
impl RefUnwindSafe for SystemState
impl Send for SystemState
impl Sync for SystemState
impl Unpin for SystemState
impl UnsafeUnpin for SystemState
impl UnwindSafe for SystemState
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