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§
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
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.