From 268a117cdf5e58da81fd9ece925c1b963f4c1ecb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 20 May 2014 14:58:28 -0400 Subject: sandbox: tolerate reloading with DirPortFrontPage set Also, don't tolerate changing DirPortFrontPage. Fixes bug 12028; bugfix on 0.2.5.1-alpha. --- src/or/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index dac178ade8..3d109ec78c 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2848,6 +2848,11 @@ sandbox_init_filter(void) NULL, 0 ); + if (options->DirPortFrontPage) { + sandbox_cfg_allow_open_filename(&cfg, + tor_strdup(options->DirPortFrontPage)); + } + RENAME_SUFFIX("fingerprint", ".tmp"); RENAME_SUFFIX2("keys", "secret_onion_key_ntor", ".tmp"); RENAME_SUFFIX2("keys", "secret_id_key", ".tmp"); -- cgit v1.2.3-54-g00ecf