Skip to main content

LaunchCheck

Struct LaunchCheck 

Source
pub struct LaunchCheck {
Show 14 fields pub landlock_abi: Option<u32>, pub landlock: Option<Enforcement>, pub no_new_privs_set: Option<bool>, pub seccomp_filters: Option<u32>, pub inherited_seccomp_filters: Option<u32>, pub proc_seccomp_filters: Option<u32>, pub proc_no_new_privs: Option<bool>, pub proc_seccomp_filter: Option<bool>, pub in_bubblewrap: bool, pub restricted_token: Option<bool>, pub agent_token_restricted: Option<bool>, pub job_object: Option<bool>, pub agent_in_job: Option<bool>, pub failure: Option<String>,
}
Expand description

What the launch reported, from the process that started the agent: the result of restrict_self and the seccomp filters, and the agent’s /proc/<pid>/status read after it started.

Fields§

§landlock_abi: Option<u32>

The kernel’s Landlock ABI, as restrict_self reported it.

§landlock: Option<Enforcement>

The ruleset’s enforcement, as restrict_self reported it.

§no_new_privs_set: Option<bool>

restrict_self set no_new_privs.

§seccomp_filters: Option<u32>

How many seccomp filters were applied.

§inherited_seccomp_filters: Option<u32>

The Seccomp_filters: count of the thread that started the agent, before it applied them: filters a parent (a container runtime, a service manager) had already set.

§proc_seccomp_filters: Option<u32>

The agent’s Seccomp_filters: count.

§proc_no_new_privs: Option<bool>

The agent’s NoNewPrivs: line read 1. It may have been set by a parent already; what counts is that it is in force.

§proc_seccomp_filter: Option<bool>

The agent’s Seccomp: line read 2 (filter mode) and its filter count is the inherited count plus the filters applied, so the filters in force include this run’s, not only a parent’s.

§in_bubblewrap: bool

The report came from openmoat isolated inside bubblewrap.

§restricted_token: Option<bool>

Windows: the agent’s process was created with the write-restricted token (CreateProcessAsUserW took it); absent from other records.

§agent_token_restricted: Option<bool>

Windows: the agent’s own token, read back before it ran, is restricted (IsTokenRestricted).

§job_object: Option<bool>

Windows: the agent was put in the run’s kill-on-close job before it ran.

§agent_in_job: Option<bool>

Windows: the agent’s process, checked before it ran, is in that job (IsProcessInJob).

§failure: Option<String>

Why the launch was stopped, when it was.

Implementations§

Source§

impl LaunchCheck

Source

pub fn linux_gaps(&self) -> Vec<&'static str>

What the tier promises and the check found missing on Linux: a ruleset not enforced, no_new_privs or the seccomp filter not in force in the agent. Empty when everything is in force.

Source

pub fn linux_failure(&self) -> Option<String>

The check’s failure: the one the reporting process gave, else the Self::linux_gaps found here, so a report is never taken on trust.

Trait Implementations§

Source§

impl Clone for LaunchCheck

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LaunchCheck

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LaunchCheck

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for LaunchCheck

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for LaunchCheck

Source§

impl PartialEq for LaunchCheck

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for LaunchCheck

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for LaunchCheck

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.