Skip to content
Snippets Groups Projects
  1. Apr 14, 2017
  2. Apr 13, 2017
  3. 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
    • Phil Burk's avatar
      29ec5d42
    • TreeHugger Robot's avatar
    • Sandeep Patil's avatar
    • Phil Burk's avatar
      service_contexts: add aaudio service · 16a2cfe3
      Phil Burk authored
      
      Test: test_aaudio.cpp
      Bug: 33398120
      Change-Id: I0712f60c898136154d729ceb1103ee021cc6ab82
      Signed-off-by: default avatarPhil Burk <philburk@google.com>
      (cherry picked from commit 8b9d93f2)
      16a2cfe3
    • Dan Cashman's avatar
      Remove BOARD_SEPOLICY_VERS_DIR build variable. · 6bf50e5c
      Dan Cashman authored
      The original purpose of BOARD_SEPOLICY_VERS_DIR was to allow the
      specification of an alternate platform public policy, primarily for
      testing purposes.  This should not be a part of the released platform,
      since the only public policy and corresponding mapping file construction
      should be based on the current public platform policy, with compatibility
      with vendor policy targeting previous versions provided by static mapping
      files.  Its continued presence muddles the generation of mapping files by
      potentially introducing a situation in which an incorrect mapping file is
      generated.  Remove it.
      
      Bug: 36783775
      Test: Device boots with compiled SELinux policy (SHA256s don't match for
      precompiled policy).
      
      Change-Id: I9e2100a7d709c9c0949f4e556229623961291a32
      6bf50e5c
    • Dan Cashman's avatar
      Change recovery to static platform-only compilation. · c8d4535c
      Dan Cashman authored
      Recovery is not meant to be versioned in the treble model, but rather
      provided as part of the platform/framework component and self-sufficient.
      Simplify its compilation by removing the attribute versioning steps, but
      maintain device-specific policy, which is currently required for full
      functionality.
      
      Bug: 37240781
      Bug: 36783775
      Test: recovery boots and is able to select commands.  Also tried:
      reboot system, boot to bootloader, factory reset, sideload, view logs,
      run graphics test, and power off.
      
      Change-Id: I637819844d9a8ea5b315404f4abd03e8f923303a
      c8d4535c
    • TreeHugger Robot's avatar
    • Dan Cashman's avatar
      Change mapping file name to reflect its platform version. · 4f9a648e
      Dan Cashman authored
      As the platform progresses in the split SELinux world, the platform
      will need to maintain mapping files back to previous platform versions
      to maintain backwards compatibility with vendor images which have SELinux
      policy written based on the older versions.  This requires shipping multiple
      mapping files with the system image so that the right one can be selected.
      Change the name and location of the mapping file to reflect this.  Also add
      a file to the vendor partition indicating which version is being targeted that
      the platform can use to determine which mapping file to choose.
      
      Bug: 36783775
      Test: Force compilation of sepolicy on-device with mapping file changed
      to new location and name, using the value reported on /vendor.
      
      Change-Id: I93ab3e52c2c80c493719dc3825bc731867ea76d4
      4f9a648e
Loading