diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-27 15:08:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-27 17:34:52 -0400 |
commit | f0945ac270d08da146b415513fc68c7782f071be (patch) | |
tree | c6618338b4b0eab5d53eca2d09f741ec6927000a /src/common | |
parent | b0c1c700114aa8d4dfc180d85870c5bbe15fcacb (diff) | |
download | tor-f0945ac270d08da146b415513fc68c7782f071be.tar.gz tor-f0945ac270d08da146b415513fc68c7782f071be.zip |
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.)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/sandbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index e34268cdad..7586c0cb38 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; } |