aboutsummaryrefslogtreecommitdiff
path: root/src/or/conscache.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-25 19:52:34 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-25 19:52:34 -0400
commit24f7059704433834a7335286e552eda7f030666f (patch)
tree9230cbc77612c40a4ddcbf1db17e549dfaea6c1a /src/or/conscache.c
parent2655a72d893a784bf9771a4b480efddd9417e4c0 (diff)
downloadtor-24f7059704433834a7335286e552eda7f030666f.tar.gz
tor-24f7059704433834a7335286e552eda7f030666f.zip
Configure sandbox using consdiffmgr; free cdm on exit.
Diffstat (limited to 'src/or/conscache.c')
-rw-r--r--src/or/conscache.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/or/conscache.c b/src/or/conscache.c
index 9dedb43085..2544f56313 100644
--- a/src/or/conscache.c
+++ b/src/or/conscache.c
@@ -78,6 +78,17 @@ consensus_cache_open(const char *subdir, int max_entries)
}
/**
+ * Tell the sandbox (if any) configured by <b>cfg</b> to allow the
+ * operations that <b>cache</b> will need.
+ */
+int
+consensus_cache_register_with_sandbox(consensus_cache_t *cache,
+ struct sandbox_cfg_elem **cfg)
+{
+ return storage_dir_register_with_sandbox(cache->dir, cfg);
+}
+
+/**
* Helper: clear all entries from <b>cache</b> (but do not delete
* any that aren't marked for removal
*/