aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-27 15:08:10 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-27 17:34:52 -0400
commitf0945ac270d08da146b415513fc68c7782f071be (patch)
treec6618338b4b0eab5d53eca2d09f741ec6927000a
parentb0c1c700114aa8d4dfc180d85870c5bbe15fcacb (diff)
downloadtor-f0945ac270d08da146b415513fc68c7782f071be.tar
tor-f0945ac270d08da146b415513fc68c7782f071be.tar.gz
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.)
-rw-r--r--src/common/sandbox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index e34268cda..7586c0cb3 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -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;
}