mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user