pub struct Seccomp { /* private fields */ }
Expand description
Seccomp represents the “seccomp” field.
Implementations§
Source§impl Seccomp
impl Seccomp
Sourcepub fn enabled_mut(&mut self) -> &mut Option<bool>
pub fn enabled_mut(&mut self) -> &mut Option<bool>
“enabled” field represents whether seccomp support is compiled in. “None” means “unknown”, not “false”.
Sourcepub fn actions_mut(&mut self) -> &mut Option<Vec<LinuxSeccompAction>>
pub fn actions_mut(&mut self) -> &mut Option<Vec<LinuxSeccompAction>>
“actions” field represents the list of the recognized actions. “None” means “unknown”, not “no support for any action”.
Sourcepub fn operators_mut(&mut self) -> &mut Option<Vec<String>>
pub fn operators_mut(&mut self) -> &mut Option<Vec<String>>
“operators” field represents the list of the recognized operators. “None” means “unknown”, not “no support for any operator”.
Sourcepub fn archs_mut(&mut self) -> &mut Option<Vec<Arch>>
pub fn archs_mut(&mut self) -> &mut Option<Vec<Arch>>
“archs” field represents the list of the recognized architectures. “None” means “unknown”, not “no support for any architecture”.
Sourcepub fn known_flags_mut(&mut self) -> &mut Option<Vec<String>>
pub fn known_flags_mut(&mut self) -> &mut Option<Vec<String>>
“knownFlags” field represents the list of the recognized filter flags. “None” means “unknown”, not “no flags are recognized”.
Sourcepub fn supported_flags_mut(&mut self) -> &mut Option<Vec<String>>
pub fn supported_flags_mut(&mut self) -> &mut Option<Vec<String>>
“supportedFlags” field represents the list of the supported filter flags. This list may be a subset of the “knownFlags” due to some of unsupported flags by the current kernel and/or libseccomp. “None” means “unknown”, not “no flags are supported”.
Source§impl Seccomp
impl Seccomp
Sourcepub fn enabled(&self) -> &Option<bool>
pub fn enabled(&self) -> &Option<bool>
“enabled” field represents whether seccomp support is compiled in. “None” means “unknown”, not “false”.
Sourcepub fn actions(&self) -> &Option<Vec<LinuxSeccompAction>>
pub fn actions(&self) -> &Option<Vec<LinuxSeccompAction>>
“actions” field represents the list of the recognized actions. “None” means “unknown”, not “no support for any action”.
Sourcepub fn operators(&self) -> &Option<Vec<String>>
pub fn operators(&self) -> &Option<Vec<String>>
“operators” field represents the list of the recognized operators. “None” means “unknown”, not “no support for any operator”.
Sourcepub fn archs(&self) -> &Option<Vec<Arch>>
pub fn archs(&self) -> &Option<Vec<Arch>>
“archs” field represents the list of the recognized architectures. “None” means “unknown”, not “no support for any architecture”.
Sourcepub fn known_flags(&self) -> &Option<Vec<String>>
pub fn known_flags(&self) -> &Option<Vec<String>>
“knownFlags” field represents the list of the recognized filter flags. “None” means “unknown”, not “no flags are recognized”.
Sourcepub fn supported_flags(&self) -> &Option<Vec<String>>
pub fn supported_flags(&self) -> &Option<Vec<String>>
“supportedFlags” field represents the list of the supported filter flags. This list may be a subset of the “knownFlags” due to some of unsupported flags by the current kernel and/or libseccomp. “None” means “unknown”, not “no flags are supported”.
Source§impl Seccomp
impl Seccomp
Sourcepub fn set_enabled(&mut self, val: Option<bool>) -> &mut Self
pub fn set_enabled(&mut self, val: Option<bool>) -> &mut Self
“enabled” field represents whether seccomp support is compiled in. “None” means “unknown”, not “false”.
Sourcepub fn set_actions(&mut self, val: Option<Vec<LinuxSeccompAction>>) -> &mut Self
pub fn set_actions(&mut self, val: Option<Vec<LinuxSeccompAction>>) -> &mut Self
“actions” field represents the list of the recognized actions. “None” means “unknown”, not “no support for any action”.
Sourcepub fn set_operators(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_operators(&mut self, val: Option<Vec<String>>) -> &mut Self
“operators” field represents the list of the recognized operators. “None” means “unknown”, not “no support for any operator”.
Sourcepub fn set_archs(&mut self, val: Option<Vec<Arch>>) -> &mut Self
pub fn set_archs(&mut self, val: Option<Vec<Arch>>) -> &mut Self
“archs” field represents the list of the recognized architectures. “None” means “unknown”, not “no support for any architecture”.
Sourcepub fn set_known_flags(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_known_flags(&mut self, val: Option<Vec<String>>) -> &mut Self
“knownFlags” field represents the list of the recognized filter flags. “None” means “unknown”, not “no flags are recognized”.
Sourcepub fn set_supported_flags(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_supported_flags(&mut self, val: Option<Vec<String>>) -> &mut Self
“supportedFlags” field represents the list of the supported filter flags. This list may be a subset of the “knownFlags” due to some of unsupported flags by the current kernel and/or libseccomp. “None” means “unknown”, not “no flags are supported”.