1. 12 Dec, 2009 1 commit
    • Sebastian Hahn's avatar
      *_free functions now accept NULL · 3807db00
      Sebastian Hahn authored
      Some *_free functions threw asserts when passed NULL. Now all of them
      accept NULL as input and perform no action when called that way.
      
      This gains us consistence for our free functions, and allows some
      code simplifications where an explicit null check is no longer necessary.
      3807db00
  2. 22 Nov, 2009 2 commits
  3. 27 Oct, 2009 2 commits
    • 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
    • Nick Mathewson's avatar
      Add missing break statements for Coverity CIDs #406,407. · 8bada1ef
      Nick Mathewson authored
      The code for these was super-wrong, but will only break things when we
      reset an option on a platform where sizeof(time_t) is different from
      sizeof(int).
      8bada1ef
  4. 15 Oct, 2009 1 commit
  5. 11 Oct, 2009 1 commit
  6. 01 Oct, 2009 1 commit
  7. 30 Sep, 2009 1 commit
  8. 28 Sep, 2009 1 commit
  9. 18 Sep, 2009 1 commit
  10. 16 Sep, 2009 7 commits
  11. 15 Sep, 2009 1 commit
  12. 01 Sep, 2009 2 commits
  13. 31 Aug, 2009 1 commit
  14. 26 Aug, 2009 1 commit
  15. 21 Aug, 2009 1 commit
  16. 19 Aug, 2009 1 commit
  17. 17 Aug, 2009 3 commits
  18. 14 Aug, 2009 1 commit
  19. 10 Aug, 2009 1 commit
  20. 07 Aug, 2009 1 commit
  21. 06 Aug, 2009 2 commits
  22. 30 Jul, 2009 2 commits
  23. 28 Jul, 2009 2 commits
  24. 23 Jul, 2009 1 commit
  25. 15 Jul, 2009 2 commits
    • Sebastian Hahn's avatar
      fix long line · 989e74e5
      Sebastian Hahn authored
      989e74e5
    • Karsten Loesing's avatar
      Some tweaks to statistics. · 8c496d16
      Karsten Loesing authored
      Changes to directory request statistics:
      
      - Rename GEOIP statistics to DIRREQ statistics, because they now include
        more than only GeoIP-based statistics, whereas other statistics are
        GeoIP-dependent, too.
      - Rename output file from geoip-stats to dirreq-stats.
      - Add new config option DirReqStatistics that is required to measure
        directory request statistics.
      - Clean up ChangeLog.
      
      Also ensure that entry guards statistics have access to a local GeoIP
      database.
      8c496d16