Skip to content
Commit eed09ad2 authored by Kees Cook's avatar Kees Cook
Browse files

samples/seccomp: Adjust sample to also provide kill option



As a quick way to test SECCOMP_RET_KILL, have a negative errno mean to
kill the process.

While we're in here, also swap the arch and syscall arguments so they're
ordered more like how seccomp filters order them.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 495ac306
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment