1. 09 Jul, 2015 1 commit
  2. 06 Jul, 2015 1 commit
    • Elliott Hughes's avatar
      Fix alignment after variable-length data. · 65dd8582
      Elliott Hughes authored
      In the serialized output from netd, the strings come first. Some code
      assumes -- reasonably enough -- that it can do unaligned reads of pointers,
      so we need to ensure alignment after all the strings.
      
      Bug: http://b/21192318
      Change-Id: I456639127db9a2583f7f738e6b8103375d9387fd
      65dd8582
  3. 30 Jun, 2015 1 commit
    • Dmitriy Ivanov's avatar
      Improve personality initialization · f643eb38
      Dmitriy Ivanov authored
      1. Personality parameter should be unsigned int (not long)
      2. Do not reset bits outside of PER_MASK when setting
         personality value.
      3. Set personality for static executables.
      
      Bug: http://b/21900686
      Change-Id: I4c7e34079cbd59b818ce221eed325c05b9bb2303
      f643eb38
  4. 29 Jun, 2015 2 commits
    • Erik Kline's avatar
      Pass around struct android_net_context for better behaviour · 754f6690
      Erik Kline authored
      Group network context elements in to a single struct and
      add a version of android_getaddrinfofornet() that accepts it.
      
      The introduction of UID-based routing means that the UID is an
      integral part of the network context when evaluating connectivity,
      sorting addresses, etc.
      
      Also, introduce a distinction between DNS netids/marks and those
      expected to be used by the application.  This can be important
      when the network an application is using is not the same as the
      network on which DNS queries will be issued.
      
      Additionally, de-duplicate the UDP connect logic (collapse both
      _test_connect() and _find_src_addr() into just the latter).
      
      Bug: 19470192
      Bug: 20733156
      Bug: 21832279
      Change-Id: If16c2f4744695f507993afdac078ca105eb5d3e4
      (cherry picked from commit 01e37c96)
      754f6690
    • Dmitriy Ivanov's avatar
      Lock on dl_interate_phdr · f7d5bf33
      Dmitriy Ivanov authored
      There is possibility of someone dlclosing a library
      while dl_iterate_phdr in progress which can lead to
      dl_iterate_phdr calling callback with invalid address
      if it was unmapped by dlclose.
      
      Bug: http://b/22047255
      Change-Id: I3fc0d9fd2c51fb36fd34cb035f37271fa893a7be
      f7d5bf33
  5. 25 Jun, 2015 1 commit
  6. 24 Jun, 2015 1 commit
  7. 23 Jun, 2015 2 commits
  8. 22 Jun, 2015 3 commits
  9. 19 Jun, 2015 5 commits
  10. 18 Jun, 2015 2 commits
  11. 17 Jun, 2015 7 commits
  12. 16 Jun, 2015 6 commits
  13. 15 Jun, 2015 4 commits
  14. 12 Jun, 2015 3 commits
  15. 11 Jun, 2015 1 commit