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