]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Don't start sandbox except for CMD_RUN_TOR
authorNick Mathewson <nickm@torproject.org>
Mon, 5 May 2014 14:29:35 +0000 (10:29 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 May 2014 14:29:35 +0000 (10:29 -0400)
This was crashing on --verify-config in the debian startup script, if you
had sandboxing enabled.  Fixes 11609; fix on 0.2.5.1-alpha.

changes/bug11609 [new file with mode: 0644]
src/or/main.c

diff --git a/changes/bug11609 b/changes/bug11609
new file mode 100644 (file)
index 0000000..2a11613
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (sandbox):
+    - Don't try to enable the sandbox when using the Tor binary to
+      check its configuration, hash a passphrase, or so on. Doing
+      so was crashing on startup for some users. Fixes bug 11609;
+      bugfix on 0.2.5.1-alpha.
index 6713d80368d170c8a7c6390ddf1bd9224b4b6c14..1e591577fe00478542f125782a9b50032abffcd0 100644 (file)
@@ -2938,7 +2938,7 @@ tor_main(int argc, char *argv[])
   if (tor_init(argc, argv)<0)
     return -1;
 
-  if (get_options()->Sandbox) {
+  if (get_options()->Sandbox && get_options()->command == CMD_RUN_TOR) {
     sandbox_cfg_t* cfg = sandbox_init_filter();
 
     if (sandbox_init(cfg)) {