From 24f7059704433834a7335286e552eda7f030666f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 25 Apr 2017 19:52:34 -0400 Subject: Configure sandbox using consdiffmgr; free cdm on exit. --- src/or/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/or/main.c') diff --git a/src/or/main.c b/src/or/main.c index 5fec7e4a5d..452c350fbe 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -64,6 +64,7 @@ #include "connection.h" #include "connection_edge.h" #include "connection_or.h" +#include "consdiffmgr.h" #include "control.h" #include "cpuworker.h" #include "crypto_s2k.h" @@ -3162,6 +3163,7 @@ tor_free_all(int postfork) sandbox_free_getaddrinfo_cache(); protover_free_all(); bridges_free_all(); + consdiffmgr_free_all(); if (!postfork) { config_free_all(); or_state_free_all(); @@ -3584,6 +3586,8 @@ sandbox_init_filter(void) OPEN_DATADIR("stats"); STAT_DATADIR("stats"); STAT_DATADIR2("stats", "dirreq-stats"); + + consdiffmgr_register_with_sandbox(&cfg); } init_addrinfo(); -- cgit v1.2.3-54-g00ecf