diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-22 19:56:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-22 19:56:56 -0400 |
commit | ffc1fde01fb4fc752aa54de0282cf027bdb738cf (patch) | |
tree | 3864849d8cab337f95824ee4b43492d6fc8c2f9c /src/or/config.c | |
parent | 1356ef1176099bf56d047fbdc817a99fc1ed76ea (diff) | |
download | tor-ffc1fde01fb4fc752aa54de0282cf027bdb738cf.tar.gz tor-ffc1fde01fb4fc752aa54de0282cf027bdb738cf.zip |
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.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 0f7b1d2a2e..f0b559da22 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; |