main: Give a friendly message when we get a seccomp violation

If we receive SIGSYS and identify it as a seccomp violation then give
friendly instructions on how to debug further. We are unable to decode
the siginfo_t struct ourselves due to https://github.com/rust-lang/libc/issues/716

Fixes: #2139

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-01-11 18:32:35 +00:00
parent d83c9a74f4
commit 39d080e0c1
3 changed files with 34 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -226,6 +226,7 @@ dependencies = [
"option_parser",
"seccomp",
"serde_json",
"signal-hook",
"ssh2",
"tempdir",
"tempfile",