diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-16 16:05:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-16 22:03:18 -0400 |
commit | 619497076585c54dc80656cdd4e6181f1109ff53 (patch) | |
tree | c393d36474eb5758d7c607fd5a195df148d96729 /src/common/sandbox.h | |
parent | 18f7f49a8c08a38c15de4b8e6413ed2ae0968639 (diff) | |
download | tor-619497076585c54dc80656cdd4e6181f1109ff53.tar.gz tor-619497076585c54dc80656cdd4e6181f1109ff53.zip |
Don't allow change to ConnLimit while sandbox is active
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r-- | src/common/sandbox.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h index c4144dbb2e..c40f5e0d1f 100644 --- a/src/common/sandbox.h +++ b/src/common/sandbox.h @@ -229,5 +229,8 @@ int sandbox_cfg_allow_stat_filename_array(sandbox_cfg_t **cfg, ...); /** Function used to initialise a sandbox configuration.*/ int sandbox_init(sandbox_cfg_t* cfg); +/** Return true iff the sandbox is turned on. */ +int sandbox_is_active(void); + #endif /* SANDBOX_H_ */ |