pub struct Facts {
pub apparmor_restrict: Option<u32>,
pub max_user_namespaces: Option<u64>,
pub unprivileged_userns_clone: Option<u32>,
pub apparmor_label: Option<String>,
pub in_container: bool,
pub exe: Option<PathBuf>,
pub exe_writable: Option<String>,
}Expand description
What explains a failure: the sysctls that turn user namespaces off, Ubuntu’s AppArmor restriction, and whether this looks like a container.
Fields§
§apparmor_restrict: Option<u32>kernel.apparmor_restrict_unprivileged_userns (Ubuntu 24.04+).
max_user_namespaces: Option<u64>user.max_user_namespaces.
unprivileged_userns_clone: Option<u32>kernel.unprivileged_userns_clone (Debian’s patch).
apparmor_label: Option<String>/proc/self/attr/apparmor/current, e.g. docker-default (enforce).
in_container: bool/.dockerenv, /run/.containerenv, $container, or a container AppArmor label.
exe: Option<PathBuf>This cant’s executable, canonical.
exe_writable: Option<String>Why root_owned fails for it, if it does: only a root-owned binary can safely get an
AppArmor profile.
Trait Implementations§
impl Eq for Facts
impl StructuralPartialEq for Facts
Auto Trait Implementations§
impl Forget for Facts
impl Freeze for Facts
impl Move for Facts
impl RefUnwindSafe for Facts
impl Send for Factswhere
RawVecInner: Send,
impl Sync for Factswhere
RawVecInner: Sync,
impl Unpin for Facts
impl UnsafeUnpin for Facts
impl UnwindSafe for Factswhere
RawVecInner: UnwindSafe,
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