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