aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-06 14:23:47 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-06 14:23:47 -0400
commitab18e5e5fcff7fbdbf0905e6dd2585b7e4a10108 (patch)
tree5d5f4474344b193895a2c3fae21c205007a76e79 /src/common
parent9261f612ad7ea66580bc5f95d9c9b609e125da3a (diff)
downloadtor-ab18e5e5fcff7fbdbf0905e6dd2585b7e4a10108.tar.gz
tor-ab18e5e5fcff7fbdbf0905e6dd2585b7e4a10108.zip
Better error on failure to load seccomp2 sandbox
There are two reasons this is likeliest to happen -- no kernel support, and some bug in Tor. We'll ask people to check the former before they report. Closes 23090.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/sandbox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 18beaabe14..a85b1406fa 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -1638,7 +1638,9 @@ install_syscall_filter(sandbox_cfg_t* cfg)
// loading the seccomp2 filter
if ((rc = seccomp_load(ctx))) {
- log_err(LD_BUG, "(Sandbox) failed to load: %d (%s)!", rc,
+ log_err(LD_BUG, "(Sandbox) failed to load: %d (%s)! "
+ "Are you sure that your kernel has seccomp2 support? The "
+ "sandbox won't work without it.", rc,
strerror(-rc));
goto end;
}