summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-05-10 11:04:06 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:33 -0400
commit5d2506d70cdc73d840e0222d0f007365ae44fac0 (patch)
tree29bad19384531e5826d5debdbd8030eff923561f /src/or/main.c
parent848e701f55039b43e90cb1dae226db567876f2d3 (diff)
downloadtor-5d2506d70cdc73d840e0222d0f007365ae44fac0.tar.gz
tor-5d2506d70cdc73d840e0222d0f007365ae44fac0.zip
prop224: Sandbox support for service
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index a45e64929f..95b0ce6ef7 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -3572,7 +3572,7 @@ sandbox_init_filter(void)
{
smartlist_t *files = smartlist_new();
smartlist_t *dirs = smartlist_new();
- rend_services_add_filenames_to_lists(files, dirs);
+ hs_service_lists_fnames_for_sandbox(files, dirs);
SMARTLIST_FOREACH(files, char *, file_name, {
char *tmp_name = NULL;
tor_asprintf(&tmp_name, "%s.tmp", file_name);
@@ -3581,6 +3581,7 @@ sandbox_init_filter(void)
/* steals references */
sandbox_cfg_allow_open_filename(&cfg, file_name);
sandbox_cfg_allow_open_filename(&cfg, tmp_name);
+ tor_free(file_name);
});
SMARTLIST_FOREACH(dirs, char *, dir, {
/* steals reference */