mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
2aac39a779
This commit implements a new config option: 'DisableAllSwap' This option probably only works properly when Tor is started as root. We added two new functions: tor_mlockall() and tor_set_max_memlock(). tor_mlockall() attempts to mlock() all current and all future memory pages. For tor_mlockall() to work properly we set the process rlimits for memory to RLIM_INFINITY (and beyond) inside of tor_set_max_memlock(). We behave differently from mlockall() by only allowing tor_mlockall() to be called one single time. All other calls will result in a return code of 1. It is not possible to change DisableAllSwap while running. A sample configuration item was added to the torrc.complete.in config file. A new item in the man page for DisableAllSwap was added. Thanks to Moxie Marlinspike and Chris Palmer for their feedback on this patch. Please note that we make no guarantees about the quality of your OS and its mlock/mlockall implementation. It is possible that this will do nothing at all. It is also possible that you can ulimit the mlock properties of a given user such that root is not required. This has not been extensively tested and is unsupported. I have included some comments for possible ways we can handle this on win32. |
||
---|---|---|
.. | ||
contrib | ||
design-paper | ||
roadmaps | ||
spec | ||
codecon04.mgp | ||
HACKING | ||
Makefile.am | ||
privoxy-osx-universal-binary.txt | ||
rump-fc04.mgp | ||
TODO | ||
TODO.021 | ||
TODO.022 | ||
TODO.external | ||
TODO.future | ||
tor-gencert.1 | ||
tor-osx-dmg-creation.txt | ||
tor-resolve.1 | ||
tor-rpm-creation.txt | ||
tor-win32-mingw-creation.txt | ||
tor.1.in | ||
translations.txt | ||
v3-authority-howto.txt |