Skip to content
Snippets Groups Projects
  1. Jan 05, 2012
  2. Dec 08, 2011
  3. Nov 07, 2011
  4. Oct 13, 2011
  5. Sep 15, 2011
  6. Sep 12, 2011
  7. Aug 08, 2011
  8. Jul 07, 2011
  9. Jun 05, 2011
  10. May 11, 2011
  11. Apr 04, 2011
  12. Mar 08, 2011
  13. Feb 08, 2011
  14. Jan 10, 2011
  15. Dec 08, 2010
  16. Nov 10, 2010
  17. Nov 06, 2010
  18. Oct 04, 2010
  19. Sep 21, 2010
  20. Sep 08, 2010
  21. Aug 03, 2010
  22. Jun 10, 2010
  23. Jun 07, 2010
  24. May 06, 2010
  25. Feb 08, 2010
  26. Oct 27, 2009
    • Jacob Appelbaum's avatar
      Implement DisableAllSwap to avoid putting secret info in page files. · 2aac39a7
      Jacob Appelbaum authored and Roger Dingledine's avatar Roger Dingledine committed
      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.
      2aac39a7
  27. Sep 24, 2009
  28. Sep 21, 2009
  29. Jul 16, 2009
  30. Jun 03, 2009
  31. May 05, 2009
  32. Apr 12, 2009
  33. Mar 05, 2009
  34. Feb 12, 2009
  35. Jan 30, 2009
Loading