Struct oci_spec::runtime::LinuxSeccompBuilder
source · pub struct LinuxSeccompBuilder { /* private fields */ }
Expand description
Builder for LinuxSeccomp
.
Implementations§
source§impl LinuxSeccompBuilder
impl LinuxSeccompBuilder
sourcepub fn default_action<VALUE: Into<LinuxSeccompAction>>(
self,
value: VALUE,
) -> Self
pub fn default_action<VALUE: Into<LinuxSeccompAction>>( self, value: VALUE, ) -> Self
The default action to be done.
sourcepub fn default_errno_ret<VALUE: Into<u32>>(self, value: VALUE) -> Self
pub fn default_errno_ret<VALUE: Into<u32>>(self, value: VALUE) -> Self
The default error return code to use when the default action is SCMP_ACT_ERRNO.
sourcepub fn architectures<VALUE: Into<Vec<Arch>>>(self, value: VALUE) -> Self
pub fn architectures<VALUE: Into<Vec<Arch>>>(self, value: VALUE) -> Self
Available architectures for the restriction.
sourcepub fn flags<VALUE: Into<Vec<LinuxSeccompFilterFlag>>>(
self,
value: VALUE,
) -> Self
pub fn flags<VALUE: Into<Vec<LinuxSeccompFilterFlag>>>( self, value: VALUE, ) -> Self
Flags added to the seccomp restriction.
sourcepub fn listener_path<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
pub fn listener_path<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
The unix domain socket path over which runtime will use for SCMP_ACT_NOTIFY
.
sourcepub fn listener_metadata<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn listener_metadata<VALUE: Into<String>>(self, value: VALUE) -> Self
An opaque data to pass to the seccomp agent.
sourcepub fn syscalls<VALUE: Into<Vec<LinuxSyscall>>>(self, value: VALUE) -> Self
pub fn syscalls<VALUE: Into<Vec<LinuxSyscall>>>(self, value: VALUE) -> Self
The syscalls for the restriction.
sourcepub fn build(self) -> Result<LinuxSeccomp, OciSpecError>
pub fn build(self) -> Result<LinuxSeccomp, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxSeccompBuilder
impl RefUnwindSafe for LinuxSeccompBuilder
impl Send for LinuxSeccompBuilder
impl Sync for LinuxSeccompBuilder
impl Unpin for LinuxSeccompBuilder
impl UnwindSafe for LinuxSeccompBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more