Struct syscallz::Context[][src]

pub struct Context { /* fields omitted */ }
Expand description

The context to configure and enforce seccomp rules

Implementations

Create a new seccomp context and use DEFAULT_KILL as the default action.

Create a new seccomp context with the given Action as default action.

Allow the given syscall regardless of the arguments.

Execute the given action for the given syscall. This can be used to either allow or deny a syscall, regardless of the arguments.

Execute a given action for a given syscall if the Comparators match the given arguments.

Load and enforce the configured seccomp policy

Generate and output the current seccomp filter in BPF (Berkeley Packet Filter) format. The output is suitable to be loaded into the kernel. The filter is written to the given file descriptor.

Generate and output the current seccomp filter in PFC (Pseudo Filter Code) format. The output is human read and meant to be used for debugging for developers. The filter is written to the given file descriptor.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.