aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sandbox/sandbox.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-21 09:29:03 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-21 09:29:03 -0400
commit5cd85feaa7f05b2dc6229b4a72216ee8ffdc3b66 (patch)
tree8c191591eb3f165afdd2c4877fdc075c6dd004a9 /src/lib/sandbox/sandbox.h
parent95d4bff7849a1801085c1f28b3f7a54b3b814dd6 (diff)
parentd28bfb2cd5665c38bd14d6a72848209dcd66faf9 (diff)
downloadtor-5cd85feaa7f05b2dc6229b4a72216ee8ffdc3b66.tar.gz
tor-5cd85feaa7f05b2dc6229b4a72216ee8ffdc3b66.zip
Merge remote-tracking branch 'tor-gitlab/mr/68' into maint-0.4.4
Diffstat (limited to 'src/lib/sandbox/sandbox.h')
-rw-r--r--src/lib/sandbox/sandbox.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/sandbox/sandbox.h b/src/lib/sandbox/sandbox.h
index b50df48255..a2b3227b90 100644
--- a/src/lib/sandbox/sandbox.h
+++ b/src/lib/sandbox/sandbox.h
@@ -136,6 +136,13 @@ int sandbox_cfg_allow_rename(sandbox_cfg_t **cfg, char *file1, char *file2);
int sandbox_cfg_allow_openat_filename(sandbox_cfg_t **cfg, char *file);
/**
+ * Function used to add a opendir allowed filename to a supplied configuration.
+ * The (char*) specifies the path to the allowed dir; we steal the pointer to
+ * that dir.
+ */
+int sandbox_cfg_allow_opendir_dirname(sandbox_cfg_t **cfg, char *dir);
+
+/**
* Function used to add a stat/stat64 allowed filename to a configuration.
* The (char*) specifies the path to the allowed file; that pointer is stolen.
*/