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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment