aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-22 19:56:56 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-22 19:56:56 -0400
commitffc1fde01fb4fc752aa54de0282cf027bdb738cf (patch)
tree3864849d8cab337f95824ee4b43492d6fc8c2f9c /src/or/config.c
parent1356ef1176099bf56d047fbdc817a99fc1ed76ea (diff)
downloadtor-ffc1fde01fb4fc752aa54de0282cf027bdb738cf.tar
tor-ffc1fde01fb4fc752aa54de0282cf027bdb738cf.tar.gz
sandbox: allow access to cookie files, approved-routers
fixes part of 12064
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 0f7b1d2a2..f0b559da2 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3750,6 +3750,16 @@ options_transition_allowed(const or_options_t *old,
" while Sandbox is active");
return -1;
}
+ if (! opt_streq(old->CookieAuthFile, new_val->CookieAuthFile)) {
+ *msg = tor_strdup("Can't change CookieAuthFile while Sandbox is active");
+ return -1;
+ }
+ if (! opt_streq(old->ExtORPortCookieAuthFile,
+ new_val->ExtORPortCookieAuthFile)) {
+ *msg = tor_strdup("Can't change ExtORPortCookieAuthFile"
+ " while Sandbox is active");
+ return -1;
+ }
}
return 0;