Struct oci_spec::runtime::SeccompBuilder
source · pub struct SeccompBuilder { /* private fields */ }
Expand description
Builder for Seccomp
.
Implementations§
source§impl SeccompBuilder
impl SeccompBuilder
sourcepub fn enabled<VALUE: Into<bool>>(self, value: VALUE) -> Self
pub fn enabled<VALUE: Into<bool>>(self, value: VALUE) -> Self
“enabled” field represents whether seccomp support is compiled in. “None” means “unknown”, not “false”.
sourcepub fn actions<VALUE: Into<Vec<LinuxSeccompAction>>>(self, value: VALUE) -> Self
pub fn actions<VALUE: Into<Vec<LinuxSeccompAction>>>(self, value: VALUE) -> Self
“actions” field represents the list of the recognized actions. “None” means “unknown”, not “no support for any action”.
sourcepub fn operators<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn operators<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
“operators” field represents the list of the recognized operators. “None” means “unknown”, not “no support for any operator”.
sourcepub fn archs<VALUE: Into<Vec<Arch>>>(self, value: VALUE) -> Self
pub fn archs<VALUE: Into<Vec<Arch>>>(self, value: VALUE) -> Self
“archs” field represents the list of the recognized architectures. “None” means “unknown”, not “no support for any architecture”.
sourcepub fn known_flags<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn known_flags<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
“knownFlags” field represents the list of the recognized filter flags. “None” means “unknown”, not “no flags are recognized”.
sourcepub fn supported_flags<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn supported_flags<VALUE: Into<Vec<String>>>(self, value: VALUE) -> 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”.