mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +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:
parent
b0c1c70011
commit
f0945ac270
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user