Skip to content
Snippets Groups Projects
  1. May 09, 2017
  2. May 08, 2017
  3. May 04, 2017
  4. May 03, 2017
    • William Roberts's avatar
      storaged: add permissions for dumpstate · fd8f305b
      William Roberts authored
      
      The service "storaged" implememnts a dump() interface for
      dumpsys, and thus it needs to write its state to the fd
      provided by dumpstate.
      
      To correct this, and fix dumpstate, allow the permission.
      
      Fixes:
      avc: denied { use } for pid=3298 comm="dumpsys" path="pipe:[33470]" dev="pipefs" ino=33470 scontext=u:r:storaged:s0 tcontext=u:r:dumpstate:s0 tclass=fd permissive=0
      
      Test:
      With a device that has storaged, issue the command:
      $ adb shell dumpstate
      
      Change-Id: I515e20f0328b6edc01ea2a7c53b1d3c4ca0e72ac
      Signed-off-by: default avatarWilliam Roberts <william.c.roberts@intel.com>
      fd8f305b
  5. May 01, 2017
  6. Apr 28, 2017
    • Andreas Gampe's avatar
      Sepolicy-Analyze: Plug leak am: ee8b67df · 4c1385a6
      Andreas Gampe authored
      am: 4a318ad6
      
      Change-Id: Iffd30a9cfee48626dc01635877b90ef7a1e8f9b0
      4c1385a6
    • Andreas Gampe's avatar
      Sepolicy-Analyze: Plug leak · 4a318ad6
      Andreas Gampe authored
      am: ee8b67df
      
      Change-Id: Ic2fe390f95f0be43ad39a50366e0300a398aa0ad
      4a318ad6
    • Andreas Gampe's avatar
      fc_sort: Fix leaks · c32d7bae
      Andreas Gampe authored
      Use the getline API correctly: keep a single buffer as long as
      possible, and let the callee handle re-allocation. Move the final
      free out of the loop.
      
      Release the head of the linked list.
      
      Bug: 37757586
      Test: ASAN_OPTIONS= SANITIZE_HOST=address mmma system/sepolicy
      Change-Id: I42424acba7cd68c1b9a7a43e916a421ac3e253f7
      c32d7bae
    • Andreas Gampe's avatar
      Sepolicy-Analyze: Plug leak · ee8b67df
      Andreas Gampe authored
      Destroy the policy before exiting (for successful = expected runs).
      
      Bug: 37757759
      Test: ASAN_OPTIONS= SANITIZE_HOST=address m
      Change-Id: I67e35fbede696ec020a53b69a6cef9f374fae167
      ee8b67df
  7. Apr 27, 2017
  8. Apr 26, 2017
Loading