commit | eed09ad261822a7bdc441ed192c6f444375e5527 | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Mon Feb 07 20:53:34 2022 -0800 |
committer | Kees Cook <keescook@chromium.org> | Thu Feb 10 19:09:12 2022 -0800 |
tree | 2a825afbd7c73595c3679e39dd43ecbaa5d9d8d3 | |
parent | 495ac3069a6235bfdf516812a2a9b256671bbdf9 [diff] |
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: Kees Cook <keescook@chromium.org>