Skip to content
Snippets Groups Projects
Commit f0945ac2 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Log the errno value if seccomp_load() fails.

(This is how I found out I was trying to test with a kernel too old
for seccomp. I think.)
parent b0c1c700
No related branches found
No related tags found
No related merge requests found
......@@ -1470,7 +1470,8 @@ install_syscall_filter(sandbox_cfg_t* cfg)
// loading the seccomp2 filter
if ((rc = seccomp_load(ctx))) {
log_err(LD_BUG, "(Sandbox) failed to load!");
log_err(LD_BUG, "(Sandbox) failed to load: %d (%s)!", rc,
strerror(-rc));
goto end;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment