pub fn is_arch_present(&self, arch: ScmpArch) -> Result<bool> {
        let ret = unsafe { seccomp_arch_exist(self.ctx.as_ptr(), arch.to_native()) };

        if ret != 0 {
            if ret == -(libc::EEXIST as i32) {
                return Ok(false);
            }
            return Err(SeccompError::new(Errno(ret)));
        }

        Ok(true)
    }
/// is_arch_present checks if an architecture is present in a filter.
///
/// If a filter contains an architecture, it uses its default action for
/// syscalls which do not match rules in it, and its rules can match syscalls
/// for that ABI.
/// If a filter does not contain an architecture, all syscalls made to that
/// kernel ABI will fail with the filter's default Bad Architecture Action
/// (by default, killing the proc).
/// Accepts an architecture constant.
/// Returns true if the architecture is present in the filter, false otherwise,
/// and an error on an invalid filter context, architecture constant, or an
/// issue with the call to libseccomp
is_arch_present checks if an architecture is present in a filter.
If a filter contains an architecture, it uses its default action for
syscalls which do not match rules in it, and its rules can match syscalls
for that ABI.
If a filter does not contain an architecture, all syscalls made to that
kernel ABI will fail with the filter's default Bad Architecture Action
(by default, killing the proc).
Accepts an architecture constant.
Returns true if the architecture is present in the filter, false otherwise,
and an error on an invalid filter context, architecture constant, or an
issue with the call to libseccomp
is_arch_present checks if an architecture is present in a filter . If a filter contains an architecture it uses its default action for syscalls which do not match rules in it and its rules can match syscalls for that ABI . If a filter does not contain an architecture all syscalls made to that kernel ABI will fail with the filter ' s default Bad Architecture Action ( by default killing the proc ) . Accepts an architecture constant . Returns true if the architecture is present in the filter false otherwise and an error on an invalid filter context architecture constant or an issue with the call to libseccomp
pub fn is_arch_present(&self, arch: ScmpArch) -> Result<bool> {
        let ret = unsafe { seccomp_arch_exist(self.ctx.as_ptr(), arch.to_native()) };
        if ret != 0 {
            if ret == -(libc::EEXIST as i32) {
                return Ok(false);
            }
            return Err(SeccompError::new(Errno(ret)));
        }
        Ok(true)
    }
pub fn is_arch_present ( & self , arch : ScmpArch ) -> Result < bool > { let ret = unsafe { seccomp_arch_exist ( self . ctx . as_ptr ( ) , arch . to_native ( ) ) } ; if ret != 0 { if ret == - ( libc :: EEXIST as i32 ) { return Ok ( false ) ; } return Err ( SeccompError :: new ( Errno ( ret ) ) ) ; } Ok ( true ) }
is_arch_present checks if an architecture is present in a filter.
is_arch_present checks if an architecture is present in a filter .
&self
arch
ScmpArch