Enum libseccomp::ScmpArch
source · [−]#[non_exhaustive]
pub enum ScmpArch {
Show 20 variants
Native,
X86,
X8664,
X32,
Arm,
Aarch64,
Mips,
Mips64,
Mips64N32,
Mipsel,
Mipsel64,
Mipsel64N32,
Ppc,
Ppc64,
Ppc64Le,
S390,
S390X,
Parisc,
Parisc64,
Riscv64,
}
Expand description
Represents a CPU architecture. Seccomp can restrict syscalls on a per-architecture basis.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Native
The native architecture token
X86
The x86 (32-bit) architecture token
X8664
The x86-64 (64-bit) architecture token
X32
The x32 (32-bit x86_64) architecture token
Arm
The ARM architecture token
Aarch64
The AARCH64 architecture token
Mips
The MIPS architecture token
Mips64
The MIPS (64-bit) architecture token
Mips64N32
The MIPS64N32 architecture token
Mipsel
The MIPSEL architecture token
Mipsel64
The MIPSEL (64-bit) architecture token
Mipsel64N32
The MIPSEL64N32 architecture token
Ppc
The PowerPC architecture token
Ppc64
The PowerPC (64-bit) architecture token
Ppc64Le
The PowerPC64LE architecture token
S390
The S390 architecture token
S390X
The S390X architecture token
Parisc
The PA-RISC hppa architecture token
Parisc64
The PA-RISC (64-bit) hppa architecture token
Riscv64
The RISC-V architecture token
Implementations
Trait Implementations
sourceimpl FromStr for ScmpArch
impl FromStr for ScmpArch
sourcefn from_str(arch: &str) -> Result<Self, SeccompError>
fn from_str(arch: &str) -> Result<Self, SeccompError>
Converts string seccomp architecture to ScmpArch
.
Arguments
arch
- A string architecture, e.g.SCMP_ARCH_*
.
See the seccomp_arch_add(3)
man page for details on valid architecture values.
Errors
If an invalid architecture is specified, an error will be returned.