Skip to content
Snippets Groups Projects
  • Alex Klyubin's avatar
    Treble devices use binderized HALs · 22157e7a
    Alex Klyubin authored
    All HALs which are represented by hal_* attributes in SELinux policy
    are required to run in binderized mode on Treble devices. This commit
    thus makes the SELinux policy for Treble devices no longer associate
    domains in hal_x_client with hal_x attribute, which is what was
    granting domains hosting clients of hal_x the rules needed to run this
    HAL in-process. The result is that core components have now less
    access.
    
    This commit has no effect on non-Treble devices.
    
    Test: Device boots -- no new denials
    Test: Play movie using Google Play Movies and Netflix
    Test: Play YouTube clip in YouTube app and in Chrome
    Test: Unlock lock screen using fingerprint
    Test: Using Google Camera, take a photo, an HDR+ photo, record a
          video with sound, a slow motion video with sound. Photos and
          videos display/play back fine (incl. sound).
    Test: adb screencap
    Test: $ monitor
          take screenshot
    Test: In all tests, no deials to do with hal_*, except pre-existing
          denials to do with hal_gnss.
    Bug: 37160141
    Bug: 34274385
    Bug: 34170079
    Change-Id: I1ca91d43592b466114af13898f5909f41e59b521
    22157e7a