Enum Syscall Copy item path Source pub enum Syscall {
Show 15 variants Read,
Write,
Close,
Openat,
Fstat,
Lseek,
Mmap,
Munmap,
Brk,
RtSigaction,
RtSigprocmask,
Exit,
ExitGroup,
ClockGettime,
Getrandom,
}Expand description A syscall permitted by a SyscallAllowlist .
The variant set is deliberately the small, audited vocabulary a sandboxed
workload legitimately needs; it carries the x86_64 syscall number so the
eBPF lowering (AAASM-3635) can emit SYSCALL_ALLOWLIST map keys without a
second name table. Adding a syscall is an explicit, reviewable change.
read — read from a file descriptor.
write — write to a file descriptor.
close — close a file descriptor.
openat — open a file relative to a directory fd.
lseek — reposition a file offset.
brk — change the data segment size.
rt_sigaction — examine/change a signal action.
rt_sigprocmask — examine/change blocked signals.
exit — terminate the calling thread.
exit_group — terminate all threads in the process.
clock_gettime — read a clock.
getrandom — obtain random bytes.
The x86_64 syscall number for this syscall.
These are the stable Linux x86_64 (__NR_*) numbers, used by the
AAASM-3635 lowering to populate the SYSCALL_ALLOWLIST eBPF map.
The lowercase policy name for this syscall.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more The associated error which can be returned from parsing.
Parses a string
s to return a value of this type.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.