pub trait SyscallFilter {
    fn filter_syscall(
        _process: &dyn Process,
        _syscall: &Syscall
    ) -> Result<(), ErrorCode> { ... } }
Expand description

Trait for implementing system call filters that the kernel uses to decide whether to handle a specific system call or not.

Provided Methods

Check the platform-provided system call filter for all non-yield system calls. If the system call is allowed for the provided process then return Ok(()). Otherwise, return Err() with an ErrorCode that will be returned to the calling application. The default implementation allows all system calls.

This API should be considered unstable, and is likely to change in the future.

Implementations on Foreign Types

Implement default allow all SyscallFilter trait for unit.


Implement default SyscallFilter trait for filtering based on the TBF header.