pub struct SecurityContext {
pub sandbox_mode: Option<SandboxMode>,
pub user_ns: Option<u32>,
pub mount_ns: Option<u32>,
pub pid_ns: Option<u32>,
pub net_ns: Option<u32>,
pub cgroup_path: Option<String>,
pub landlock_enabled: bool,
pub seccomp_enabled: bool,
pub allowlist_hits: Option<Vec<AllowlistHit>>,
}Expand description
Security context for audit trail
Fields§
§sandbox_mode: Option<SandboxMode>Sandbox mode used for execution
user_ns: Option<u32>User namespace ID
mount_ns: Option<u32>Mount namespace ID
pid_ns: Option<u32>PID namespace ID
net_ns: Option<u32>Network namespace ID
cgroup_path: Option<String>Cgroup path
landlock_enabled: boolLandlock restrictions applied
seccomp_enabled: boolSeccomp filter applied
allowlist_hits: Option<Vec<AllowlistHit>>Allow-list entries accessed during execution
Trait Implementations§
Source§impl Clone for SecurityContext
impl Clone for SecurityContext
Source§fn clone(&self) -> SecurityContext
fn clone(&self) -> SecurityContext
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 SecurityContext
impl Debug for SecurityContext
Source§impl<'de> Deserialize<'de> for SecurityContext
impl<'de> Deserialize<'de> for SecurityContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SecurityContext
impl RefUnwindSafe for SecurityContext
impl Send for SecurityContext
impl Sync for SecurityContext
impl Unpin for SecurityContext
impl UnsafeUnpin for SecurityContext
impl UnwindSafe for SecurityContext
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