Skip to content
Snippets Groups Projects
  1. May 22, 2017
  2. May 18, 2017
  3. May 15, 2017
    • Alex Vakulenko's avatar
      SELinux policies for PDX services · c4055f0d
      Alex Vakulenko authored
      Specify per-service rules for PDX transport. Now being able to
      grant permissions to individual services provided by processes,
      not all services of a process.
      
      Also tighter control over which permissions are required for
      client and server for individual components of IPC (endpoints,
      channels, etc).
      
      Bug: 37646189
      Change-Id: I78eb8ae8b6e08105666445a66bfcbd2f1d69d0ea
      Merged-Id: I78eb8ae8b6e08105666445a66bfcbd2f1d69d0ea
      c4055f0d
  4. May 12, 2017
  5. May 11, 2017
  6. May 10, 2017
    • Tao Bao's avatar
      recovery.te: Allow setting sys.usb.ffs.ready. · ce5ca4d0
      Tao Bao authored
      This is needed for devices using configfs, where init listens for
      sys.usb.ffs.ready=1 to config usb_gadget. When recovery starts
      sideloading, minadbd (forked from recovery) sets the property to trigger
      that action.
      
      avc:  denied  { set } for property=sys.usb.ffs.ready pid=541 uid=0 gid=0
      scontext=u:r:recovery:s0 tcontext=u:object_r:ffs_prop:s0
      tclass=property_service
      
      Bug: 35803743
      Test: Device shows up in sideload mode.
      Change-Id: Ie7f1224d3a8650160ac29811f73b8286fbced4f4
      ce5ca4d0
    • Jaesoo Lee's avatar
      configstore: assign label to all minor versions of configstore service · c895f278
      Jaesoo Lee authored
      Added rule:
      
      /(vendor|system/vendor)/bin/hw/android\.hardware\.configstore@1\.[0-9]-service
      u:object_r:hal_configstore_default_exec:s0
      
      Bug: 37727469
      Test: Built and tested on Sailfish
      Change-Id: Icf167fad1c7e601c3662f527d1e3e844ff517b58
      c895f278
  7. May 09, 2017
  8. May 08, 2017
    • Mark Salyzyn's avatar
    • Treehugger Robot's avatar
      07667733
    • Nick Kralevich's avatar
      Further restrict SELinux API access · 14e2e926
      Nick Kralevich authored
      Remove SELinux access from domain_deprecated. Access to SELinux APIs can
      be granted on a per-domain basis.
      
      Remove appdomain access to SELinux APIs. SELinux APIs are not public and
      are not intended for application use. In particular, some exploits poll
      on /sys/fs/selinux/enforce to determine if the attack was successful,
      and we want to ensure that the behavior isn't allowed. This access was
      only granted in the past for CTS purposes, but all the relevant CTS
      tests have been moved to the shell domain.
      
      Bug: 27756382
      Bug: 28760354
      Test: Device boots and no obvious problems. No collected denials.
      Change-Id: Ide68311bd0542671c8ebf9df0326e512a1cf325b
      14e2e926
    • Mark Salyzyn's avatar
      init: add "+passcred" for socket to set SO_PASSCRED · 5045773a
      Mark Salyzyn authored
      In the init scripts for socket, the type can have a suffix of
      "+cred" to request that the socket be bound to report SO_PASSCRED
      credentials on socket transactions.  Here we add socket setopt
      to selinux rules.
      
      Test: gTest logd-unit-tests --gtest_filter=logd.statistics right after boot
            (fails without logd.rc change)
      Bug: 37985222
      Change-Id: I37cdf7eea93c3e8fa52964e765eaf3007e431b1f
      5045773a
  9. May 04, 2017
    • Mikhail Naganov's avatar
      hal_audio: Allow writing dump info into pipes when capturing BR · 9686cbcd
      Mikhail Naganov authored
      The following HAL methods use file descriptors to write dump
      info comprising audioflinger debug dump:
      
      IDevice.debugDump
      IEffectsFactory.debugDump
      IStream.debugDump
      
      Bug: 37993476
      Test: check contents of media.audio_flinger section in
            a bugreport captured on Pixel device
      
      Change-Id: I77d347c019ac93c3ba0d54ce50f0fdc243b04685
      9686cbcd
    • Dimitry Ivanov's avatar
      Allow getattr on tempfs files · bf030965
      Dimitry Ivanov authored
      This is needed by linker to be able to load libraries from memfd
      which currently generated following denial:
      avc: denied { getattr } for path=2F6D656D66643A666F6F626172202864656C6574656429 dev="tmpfs" ino=902079 scontext=u:r:shell:s0 tcontext=u:object_r:shell_tmpfs:s0 tclass=file permissive=0
      
      Bug: http://b/37245203
      Bug: http://b/37916741
      Test: builds
      Change-Id: I5b57b6cada50a62657c8daaaaaa56f1ee9cdb376
      (cherry picked from commit a0d3ff8e)
  10. 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
  11. May 01, 2017
  12. Apr 28, 2017
    • 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
  13. Apr 27, 2017
  14. Apr 26, 2017
  15. Apr 25, 2017
  16. Apr 20, 2017
    • Treehugger Robot's avatar
    • Jeff Vander Stoep's avatar
      Only the bluetooth app may run in the bluetooth domain · 67b40378
      Jeff Vander Stoep authored
      Remove neverallow exemption allowing other processes to run in
      the bluetooth app's selinux domain.
      
      The bluetooth domain is intended to host the zygote spawned
      bluetooth app. It is not intended to host other bluetooth related
      processes. Please define new domains for these processes.
      
      Test: build Marlin
      Change-Id: I1fd3dd0fe85f73457d77b63a65b4307821cbd41c
      67b40378
    • Neil Fuller's avatar
      Allow the shell user to run tzdatacheck · 5684f61f
      Neil Fuller authored
      Allow the shell user to run tzdatacheck, which is required
      to enable a new host side test.
      
      This change also adds some additional checks to
      tzdatacheck.te to ensure that OEMs opening up permissions
      further don't accidentally create a security hole.
      
      Bug: 31008728
      Test: Ran CTS
      Change-Id: I6ebfb467526b6b2ea08f891420eea24c81ed1e36
      5684f61f
  17. Apr 19, 2017
  18. Apr 18, 2017
  19. Apr 17, 2017
    • Jerry Zhang's avatar
      Split mediaprovider as a separate domain from priv_app · 9f152d98
      Jerry Zhang authored
      MediaProvider requires permissions that diverge from those
      of a typical priv_app. This create a new domain and removes
      Mtp related permissions from priv_app.
      
      Bug: 33574909
      Test: Connect with MTP, download apps and files, select ringtones
      Test: DownloadProvider instrument tests, CtsProviderTestCases
      
      Change-Id: I950dc11f21048c34af639cb3ab81873d2a6730a9
      9f152d98
Loading