Trait SecurityContextExt

Source
pub trait SecurityContextExt {
    // Required methods
    fn new() -> Self;
    fn allow_privilege_escalation(self, yes: bool) -> Self;
    fn read_only_root_filesystem(self, yes: bool) -> Self;
    fn run_as_group(self, group: i64) -> Self;
    fn run_as_non_root(self, yes: bool) -> Self;
    fn run_as_user(self, user: i64) -> Self;
    fn privileged(self, yes: bool) -> Self;
    fn add_capabilities(
        self,
        capabilities: impl IntoIterator<Item = impl ToString>,
    ) -> Self;
    fn drop_capabilities(
        self,
        capabilities: impl IntoIterator<Item = impl ToString>,
    ) -> Self;
}

Required Methods§

Source

fn new() -> Self

Source

fn allow_privilege_escalation(self, yes: bool) -> Self

Source

fn read_only_root_filesystem(self, yes: bool) -> Self

Source

fn run_as_group(self, group: i64) -> Self

Source

fn run_as_non_root(self, yes: bool) -> Self

Source

fn run_as_user(self, user: i64) -> Self

Source

fn privileged(self, yes: bool) -> Self

Source

fn add_capabilities( self, capabilities: impl IntoIterator<Item = impl ToString>, ) -> Self

Source

fn drop_capabilities( self, capabilities: impl IntoIterator<Item = impl ToString>, ) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§