diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-25 19:52:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 19:52:34 -0400 |
commit | 24f7059704433834a7335286e552eda7f030666f (patch) | |
tree | 9230cbc77612c40a4ddcbf1db17e549dfaea6c1a /src/or/main.c | |
parent | 2655a72d893a784bf9771a4b480efddd9417e4c0 (diff) | |
download | tor-24f7059704433834a7335286e552eda7f030666f.tar.gz tor-24f7059704433834a7335286e552eda7f030666f.zip |
Configure sandbox using consdiffmgr; free cdm on exit.
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |