Skip to content
Snippets Groups Projects
  1. Apr 16, 2017
  2. Apr 15, 2017
  3. Apr 14, 2017
  4. Apr 13, 2017
  5. Apr 12, 2017
    • 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
    • Dan Cashman's avatar
      Fix build part 2. Always create platform_mapping_file. · 4d24a775
      Dan Cashman authored
      commit 552fb537 fixed an undefined
      module error by removing the module when not defined (on non-treble
      devices), but the sepolicy build on non-treble devices was changed
      to rely on the split treble files, even though the split is not used.
      Change this so that the file is always present, to allow policy
      compilation.
      
      Test: policy fully builds.
      Change-Id: Ia0934c739336cea54228bbff8d6644aa3ae501e5
      4d24a775
    • Dan Cashman's avatar
      Fix build: encase $(platform_mapping_file) module in treble block. · 552fb537
      Dan Cashman authored
      Specifying an empty module causes a build error, so make sure that
      if there is no $(platform_mapping_file) the MODULE is not included.
      
      Test: Makefiles parsed without error.
      Change-Id: Ie99e6534c388a3d42bf90cdfef5ee64d5c640fa0
      552fb537
    • Daniel Cashman's avatar
    • Daniel Cashman's avatar
    • Daniel Cashman's avatar
Loading