Skip to content
Snippets Groups Projects
  1. Sep 27, 2018
  2. Sep 24, 2018
    • Fan Xu's avatar
      Update SELinux Policy for bufferhubd · 26fa914c
      Fan Xu authored
      Create a new service type buffer_hub_binder_service for
      BufferHubBinderService and allow bufferhubd to publish the service.
      
      Add the service to 26.0, 27.0 and 28.0 compat ignore files since the
      service is not available in past versions.
      
      Fixes: 116022258
      Test: build passed
      
      Change-Id: I5a21f00329ed474433d96c8d1ce32377f20cada3
      26fa914c
  3. Sep 21, 2018
  4. Sep 20, 2018
    • Yifan Hong's avatar
      health.filesystem HAL renamed to health.storage · 1cef6a94
      Yifan Hong authored
      ...to reflect that the HAL operates on storage devices,
      not filesystem.
      
      Bug: 111655771
      Test: compiles
      Change-Id: Ibb0572cb1878359e5944aa6711331f0c7993ba6e
      Merged-In: Ibb0572cb1878359e5944aa6711331f0c7993ba6e
      1cef6a94
  5. Sep 06, 2018
  6. Sep 05, 2018
    • Makoto Onuki's avatar
      Add app_binding system service · 6af11813
      Makoto Onuki authored
      Bug: 109809543
      Test: Build and boot with the new service in the internal branch.
      
      Change-Id: Iaee365771c3e8e5b8f5f3b6112bbf902c6bb02bd
      6af11813
  7. Sep 04, 2018
    • Mark Salyzyn's avatar
      llkd: Add stack symbol checking · 275ea12d
      Mark Salyzyn authored
      llkd needs the ptrace capabilities and dac override to monitor for
      live lock conditions on the stack dumps.
      
      Test: compile
      Bug: 33808187
      Change-Id: Ibc1e4cc10395fa9685c4ef0ca214daf212a5e126
      275ea12d
  8. Aug 30, 2018
  9. Aug 22, 2018
  10. Aug 20, 2018
    • Hridya Valsaraju's avatar
      Define 'super_block_device' type · 4ae8fe9b
      Hridya Valsaraju authored
      Bug: 78793464
      Test: fastboot getvar partition-size:super
      
      'super_block_device' corresponds to the super partition
      required for flashing dynamic partitions.
      
      Change-Id: I323634b6797ead7c5face117a7028bf9ab947aea
      4ae8fe9b
  11. Aug 15, 2018
    • Jerry Zhang's avatar
      Add sepolicy for fastbootd · 1d85efa9
      Jerry Zhang authored
      Also allow adb and fastboot to talk to recovery
      through recovery_socket. This enables changing
      between modes with usb commands.
      
      Test: No selinux denials
      Bug: 78793464
      Change-Id: I80c54d4eaf3b94a1fe26d2280af4e57cb1593790
      1d85efa9
    • Florian Mayer's avatar
      Revert "Add sepolicy for fastbootd" · c2ab15b7
      Florian Mayer authored
      This reverts commit 0fd3ed3b.
      
      Reason for revert: Broke user builds.
      
      Change-Id: If95f1a25d22425a5a2b68a02d1561352fb5a52f0
      c2ab15b7
  12. Aug 14, 2018
    • Jerry Zhang's avatar
      Add sepolicy for fastbootd · 0fd3ed3b
      Jerry Zhang authored
      Also allow adb and fastboot to talk to recovery
      through recovery_socket. This enables changing
      between modes with usb commands.
      
      Test: No selinux denials
      Bug: 78793464
      Change-Id: I1f97659736429fe961319c642f458c80f199ffb4
      0fd3ed3b
    • Tri Vo's avatar
      Sepolicy for system suspend HAL. · dac2a4a3
      Tri Vo authored
      Bug: 78888165
      Test: device can boot with HAL running.
      Change-Id: I3bf7c8203e038b892176c97ec006152a2904c7be
      dac2a4a3
  13. Aug 10, 2018
  14. Aug 08, 2018
    • Mark Salyzyn's avatar
      fs_mgr: add overlayfs handling for squashfs system filesystems · 9b398f3f
      Mark Salyzyn authored
      /cache/overlay directory in support of overlayfs mounts on userdebug
      and eng devices.  Overlayfs in turn can be capable of supporting
      adb remount for read-only or restricted-storage filesystems like
      squashfs or right-sized (zero free space) system partitions
      respectively.
      
      Test: compile
      Bug: 109821005
      Bug: 110985612
      Change-Id: I3ece03886db7cc97f864497cf93ec6c6c39bccd1
      9b398f3f
  15. Aug 03, 2018
  16. Jul 23, 2018
  17. Jul 19, 2018
    • Jae Shin's avatar
      Add mapping files for 28.0.[ignore.]cil · 1fa96348
      Jae Shin authored
      Steps taken to produce the mapping files:
      
      1. Add prebuilts/api/28.0/[plat_pub_versioned.cil|vendor_sepolicy.cil]
      from the /vendor/etc/selinux/[plat_pub_versioned.cil|vendor_sepolicy.cil]
      files built on pi-dev with lunch target aosp_arm64-eng
      
      2. Add new file private/compat/28.0/28.0.cil by doing the following:
      - copy /system/etc/selinux/mapping/28.0.cil from pi-dev aosp_arm64-eng
      device to private/compat/28.0/28.0.cil
      - remove all attribute declaration statement (typeattribute ...) and
      sort lines alphabetically
      - some selinux types were added/renamed/deleted w.r.t 28 sepolicy.
      Find all such types using treble_sepolicy_tests_28.0 test.
      - for all these types figure out where to map them by looking at
      27.0.[ignore.]cil files and add approprite entries to 28.0.[ignore.]cil.
      
      This change also enables treble_sepolicy_tests_28.0 and install 28.0.cil
      mapping onto the device.
      
      Bug: 72458734
      Test: m selinux_policy
      Change-Id: I90e17c0b43af436da4b62c16179c198b5c74002c
      1fa96348
  18. Sep 19, 2017
    • Daniel Cashman's avatar
      Bug revert AOSP cherry-picks to enable big diff. · 46f41134
      Daniel Cashman authored
      The following commits were cherry-picked from internal master to AOSP,
      but to avoid merge-conflicts we'll do a large diff instead of individual
      cherry-picks:
      521742e9
      9aefc916
      3686efca
      de51e7de
      fff3fe2f
      
      Bug: 37916906
      Test: angler builds and boots.
      Merged-In: Ie010cc12ae866dbb97c387471f433158d3b699f3
      Change-Id: I5126ebe88b9c76a74690ecf95851d389cfc22d1f
      46f41134
    • Dan Cashman's avatar
      Bulk-revert changes caused by AOSP cherry-picks. · c3f9ebda
      Dan Cashman authored
      In order to bring AOSP development back in-line with master development,
      some CLs were cherry-picked individually from internal master to AOSP,
      which were then merged back into internal master (MERGED-IN was missing).
      Due to merge-conflict pain, these are being reverted in favor of one
      big diff.  This CL reverts the changes that were auto-merged in as a result,
      and can be used as the target of MERGED-IN when reverting the individual
      cherry-picks in AOSP.
      
      This reverts commit a08fe91e, reversing
      changes made to 11481d1d.
      
      This reverts commit 7ec5ecfb, reversing
      changes made to 6fecbbb2.
      
      Bug: 37916906
      Test: Builds 'n' boots.
      c3f9ebda
  19. Sep 08, 2017
    • Josh Gao's avatar
      Add /dev/kmsg_debug. · 521742e9
      Josh Gao authored
      Add /dev/kmsg_debug on userdebug devices, to allow crash_dump to log
      crashes to dmesg when logd isn't up yet (or is the one crashing).
      
      (Originally commited in a015186f)
      (cherry-pick of commit: 3458ec13)
      
      Bug: 37916906
      Bug: 36574794
      Bug: 62101480
      Test: Builds and boots.
      Change-Id: I83aa392f49bb412d96534925fb02921a8f4731fa
      521742e9
  20. Aug 14, 2017
    • Dan Cashman's avatar
      Move compatibility files out of prebuilts dir. · 78b3d573
      Dan Cashman authored
      The treble compatibility tests check for policy differences between old
      and new policy.  To do this correctly, we must not modify the policy which
      represents the older policies.  Move the files meant to be changed to a
      different location from the ones that are not meant to be touched to avoid
      any undesired changes to old policy, e.g. commit:
      2bdefd65078d890889672938c6f0d2accdd25bc5
      
      Bug: 36899958
      Test: Build-time tests build.
      Change-Id: I8fa3947cfae756f37556fb34e1654382e2e48372
      78b3d573
  21. Aug 11, 2017
    • Steven Moreland's avatar
      Add screencap domain. · f27bba93
      Steven Moreland authored
      Only seeing this denial in permissive:
      allow shell screencap_exec:file getattr;
      
      Bug: 37565047
      Test: adb shell screencap w/o root
      Test: cts-tradefed run cts-dev --module CtsAadbHostTestCases
      Change-Id: I9f31d2067e002e7042646ee38dbfc06687481ac7
      f27bba93
  22. Aug 08, 2017
    • Dan Cashman's avatar
      Fix thermalserviced_tmpfs compat recording mistake. · 34f827fb
      Dan Cashman authored
      Commit: 2490f1ad meant to add
      thermalserviced_tmpfs to the new_object list in the mapping file,
      but copy-paste error resulted in thermalserviced_exec_tmpfs being
      recorded instead.  Fix this.
      
      (cherry-pick of commit: fbacc656)
      
      Bug: 62573845
      Test: None. prebuilt change.
      Change-Id: Iab4eaef04742187d6397a539aae854651caa9935
      34f827fb
  23. Aug 07, 2017
    • Dan Cashman's avatar
      Fix thermalserviced_tmpfs compat recording mistake. · fbacc656
      Dan Cashman authored
      Commit: 2490f1ad meant to add
      thermalserviced_tmpfs to the new_object list in the mapping file,
      but copy-paste error resulted in thermalserviced_exec_tmpfs being
      recorded instead.  Fix this.
      
      Bug: 62573845
      Test: None. prebuilt change.
      Change-Id: Iab4eaef04742187d6397a539aae854651caa9935
      fbacc656
  24. Aug 04, 2017
    • Todd Kennedy's avatar
      Allow PackageManager to create a new service · 8bb80471
      Todd Kennedy authored
      A new API [getNamesForUids] was recently added to the PackageManager
      and this API needs to be accessible to native code. However, there
      were two constraints:
      1) Instead of hand-rolling the binder, we wanted to auto generate
      the bindings directly from the AIDL compiler.
      2) We didn't want to expose/annotate all 180+ PackageManager APIs
      when only a single API is needed.
      So, we chose to create a parallel API that can be used explicitly
      for native bindings without exposing the entirety of the
      PackageManager.
      
      Bug: 62805090
      Test: Manual
      Test: Create a native application that calls into the new service
      Test: See the call works and data and returned
      Change-Id: I0d469854eeddfa1a4fd04b5c53b7a71ba3ab1f41
      8bb80471
    • Dan Cashman's avatar
      Record thermalserviced_tmpfs for compat infrastructure. · e772a5cf
      Dan Cashman authored
      Commit: ec3b6b7e added a new daemon
      and corresponding types to sepolicy.  The explicitly declared types
      were added to 26.0.ignore.cil to reflect the labeling of new objects,
      but another type, thermalserviced_tmpfs was created by macro and was
      missed in code review.  Add it as well.
      
      Bug: 62573845
      Test: None. prebuilt change.
      Change-Id: Ia8968448eea0be889911f46fe255f581659eb548
      (cherry picked from commit 2490f1ad)
      e772a5cf
    • Todd Poynor's avatar
      thermal: sepolicy for thermalservice and Thermal HAL revision 1.1 · e9b2def7
      Todd Poynor authored
      Add sepolicy for thermalserviced daemon, IThermalService binder
      service, IThermalCallback hwservice, and Thermal HAL revision 1.1.
      
      Test: manual: marlin with modified thermal-engine.conf
      Bug: 30982366
      Change-Id: I207fa0f922a4e658338af91dea28c497781e8fe9
      (cherry picked from commit ec3b6b7e)
      e9b2def7
  25. Aug 03, 2017
    • Dan Cashman's avatar
      Record thermalserviced_tmpfs for compat infrastructure. · 2490f1ad
      Dan Cashman authored
      Commit: ec3b6b7e added a new daemon
      and corresponding types to sepolicy.  The explicitly declared types
      were added to 26.0.ignore.cil to reflect the labeling of new objects,
      but another type, thermalserviced_tmpfs was created by macro and was
      missed in code review.  Add it as well.
      
      Bug: 62573845
      Test: None. prebuilt change.
      Change-Id: Ia8968448eea0be889911f46fe255f581659eb548
      2490f1ad
  26. Aug 01, 2017
    • Dan Cashman's avatar
      Record hal_wifi_offload_hwservice type for compatibility. · 0ff9aa21
      Dan Cashman authored
      Commit: 5aef6a94 added a new type,
      system_net_netd_hwservice, for a new hwservice.  Record this in the
      compatibility infrastructure as labeling a new object, rather than
      relabeling one from O.
      
      (cherry-pick of commit: 3fc7f836)
      
      Bug: 62573845
      Test: None. Prebuilt change only.
      Change-Id: If360eb9e05684d9b47316d53e494aa773485e93f
      0ff9aa21
  27. Jul 31, 2017
    • Dan Cashman's avatar
      Record hal_wifi_offload_hwservice type for compatibility. · 3fc7f836
      Dan Cashman authored
      Commit: 5aef6a94 added a new type,
      system_net_netd_hwservice, for a new hwservice.  Record this in the
      compatibility infrastructure as labeling a new object, rather than
      relabeling one from O.
      
      Bug: 62573845
      Test: None. Prebuilt change only.
      Change-Id: If360eb9e05684d9b47316d53e494aa773485e93f
      3fc7f836
    • Dan Cashman's avatar
      Record mediaprovider_tmpfs type for compatibility. · 079a98b8
      Dan Cashman authored
      Commit: 3eed3eac added the compatibility
      statement for the new mediaprovider app domain, but it missed another
      new, private type, mediaprovider_tmpfs, that is automatically created for
      all appdomains.  It replaces priv_app_tmpfs, but since both types are
      private, they do not need to be added to the actual mapping (vendor policy
      cannot use it).
      
      Bug: 62573845
      Test: None.  Prebuilt-only change.
      Change-Id: I62229a5be74cd928fe0ca82a45b73cb61d6f5223
      079a98b8
    • Dan Cashman's avatar
      Record hal_wifi_offload_hwservice type for compatibility. · 0785a72c
      Dan Cashman authored
      Commit: 632bc494 added hwservice labeling
      and was cherry-picked to oc-dev, but the hal_wifi_offload_hwservice type
      was not part of the cherry-pick because the service was not in oc-dev.
      Record the type for compatibility purposes.
      
      Bug: 62573845
      Test: None. Prebuilt change only.
      Change-Id: Ib2c0fe862eddb566fbe6b0287238fa93dddae7b8
      0785a72c
  28. Jul 25, 2017
  29. Jul 18, 2017
    • Dan Cashman's avatar
      rm memcg type from ignore list. · 9d0737a5
      Dan Cashman authored
      This type was removed in commit: 93166cef
      and no longer needs to be included in compatibility infrastructure.
      
      Bug: 62573845
      Test: None, prebuilt change.
      Change-Id: I9dc05512c7fcb3ef4445c4c6b040809a1d595282
      9d0737a5
  30. Jul 12, 2017
    • Lorenzo Colitti's avatar
      Revert "Temporarily remove netd_stable_secret_prop from compat infra." · 98e96fac
      Lorenzo Colitti authored
      This reinstates the exception for netd_stable_secret_prop, which
      was added after O sepolicy freeze. This exception, along with the
      corresponding core sepolicy change, was reverted in order to
      allow these policies to be added to per-device sepolicy.
      
      DO NOT SUBMIT until http://ag/2528214 has automerged to master.
      
      This reverts commit 777c8ee0.
      
      Bug: 17613910
      Bug: 62573845
      Test: make -j64 bootimage
      Change-Id: I20b52f1d8e1c0cbb18a339bf45586dacbc7405ad
      98e96fac
  31. Jul 11, 2017
    • Lorenzo Colitti's avatar
      Temporarily remove netd_stable_secret_prop from compat infra. · 777c8ee0
      Lorenzo Colitti authored
      This will allow removing the netd_stable_secret_prop from common
      policy in master. It will be re-added after the wahoo-specific
      sepolicy for netd_stable_secret_prop lands in oc-dr1-dev, is
      automerged to master, and then is reverted in master.
      
      This reverts commit ebea2b45.
      
      Bug: 17613910
      Bug: 62573845
      Test: None, prebuilt change only.
      Change-Id: I1234326d2fe6446e7e09ba9e97187518fa9bce33
      777c8ee0
    • Todd Poynor's avatar
      thermal: sepolicy for thermalservice and Thermal HAL revision 1.1 · ec3b6b7e
      Todd Poynor authored
      Add sepolicy for thermalserviced daemon, IThermalService binder
      service, IThermalCallback hwservice, and Thermal HAL revision 1.1.
      
      Test: manual: marlin with modified thermal-engine.conf
      Bug: 30982366
      Change-Id: I207fa0f922a4e658338af91dea28c497781e8fe9
      ec3b6b7e
Loading