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: boolThe 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
impl LaunchCheck
Sourcepub fn linux_gaps(&self) -> Vec<&'static str>
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.
Sourcepub fn linux_failure(&self) -> Option<String>
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.