summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-05-22 20:39:10 -0400
committerNick Mathewson <nickm@torproject.org>2014-05-22 20:39:10 -0400
commitcfd0ee514c279bc6c7b7c299e001693a5aeb1f5f (patch)
tree7d0c0b49612a79875133fbf509410875d5d3427b /src/or/main.c
parent85f49abfbe50d29e4314ed0a3b436f3b14162d00 (diff)
downloadtor-cfd0ee514c279bc6c7b7c299e001693a5aeb1f5f.tar.gz
tor-cfd0ee514c279bc6c7b7c299e001693a5aeb1f5f.zip
sandbox: allow reading of hidden service configuration files.
fixes part of 12064
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/or/main.c b/src/or/main.c
index ba462dcc49..1c855d5279 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2829,13 +2829,14 @@ sandbox_init_filter(void)
);
{
- smartlist_t *logfiles = smartlist_new();
- tor_log_get_logfile_names(logfiles);
- SMARTLIST_FOREACH(logfiles, char *, logfile_name, {
+ smartlist_t *files = smartlist_new();
+ tor_log_get_logfile_names(files);
+ rend_services_add_filenames_to_list(files);
+ SMARTLIST_FOREACH(files, char *, file_name, {
/* steals reference */
- sandbox_cfg_allow_open_filename(&cfg, logfile_name);
+ sandbox_cfg_allow_open_filename(&cfg, file_name);
});
- smartlist_free(logfiles);
+ smartlist_free(files);
}
{