Skip to content
Snippets Groups Projects
  1. May 02, 2018
  2. May 01, 2018
  3. Apr 30, 2018
  4. Apr 13, 2018
    • Wale Ogunwale's avatar
      Finalizing P SDK · 49b79029
      Wale Ogunwale authored
      Bug: 77588754
      Test: builds
      Change-Id: I61ceb438cd532584847ddd55c0eeaefebdcfa51c
      49b79029
  5. Feb 01, 2018
    • Tri Vo's avatar
      Add prebuilts/api/27.0/nonplat_sepolicy.cil. · 9bcce08b
      Tri Vo authored
      This file is /vendor/etc/selinux/nonplat_sepolicy.cil from aosp_arm64-eng
      from mr1-dev
      
      Bug: 69390067
      Test: prebuilt only change
      Change-Id: I717513ae66e806afe0071cf5b42e9f709264d0b6
      9bcce08b
  6. Dec 06, 2017
  7. Oct 16, 2017
    • Jin Qian's avatar
      storaged: add storaged_pri service · 37ab7c09
      Jin Qian authored
      "storaged" service will be used by external clients, e.g. vold, dumpsys
      "storaged_pri" service will only be used by storaged cmdline.
      
      Bug: 63740245
      Change-Id: I7a60eb4ce321aced9589bbb8474d2d9e75ab7042
      37ab7c09
  8. Sep 26, 2017
  9. 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
  10. 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
    • Dan Cashman's avatar
      Update sepolicy 26.0 prebuilts again, again. · 9aefc916
      Dan Cashman authored
      (cherry-pick of commit: 55c77504)
      
      Bug: 37916906
      Bug: 37896931
      Test: none, just prebuilt update.
      Change-Id: I55b5179f98703026699a59cce4b2e1afb166fd1d
      9aefc916
    • Dan Cashman's avatar
      Update 26.0 SELinux prebuilts. · 3686efca
      Dan Cashman authored
      More changes went into oc-dev after the freeze-date.  Reflect them.
      (cherry-pick of commit: 148578a6)
      
      Bug: 37916906
      Bug: 37896931
      Test: prebuilts - none.
      Change-Id: I3300751ea7362d5d96b327138544be65eb9fc483
      3686efca
    • Dan Cashman's avatar
      Add mapping compatibility file for sepolicy api lvl 26.0 · de51e7de
      Dan Cashman authored
      commit: 5c6a227e added the oc-dev
      sepolicy prebuilts (api 26.0), but did not include the corresponding
      base mapping file, which is to be maintained along with current
      platform development in order to ensure backwards compatibility.
      (cherry-pick of commit: 5e4e0d7f)
      
      Bug: 37916906
      Bug: 37896931
      Test: none, this just copies the old mapping file to prebuilts.
      Change-Id: Ia5c36ddab036352845878178fa9c6a9d649d238f
      de51e7de
    • Dan Cashman's avatar
      Commit oc-dev sepolicy to prebuilts. · fff3fe2f
      Dan Cashman authored
      Copy the final system sepolicy from oc-dev to its prebuilt dir
      corresponding to its version (26.0) so that we can uprev policy and
      start maintaining compatibility files, as well as use it for CTS
      tests targeting future platforms.
      
      (cherry-pick of commit: 5c6a227e)
      
      Bug: 37896931
      Bug: 37916906
      Test: none, this just copies the old policy.
      Change-Id: Ib069d505e42595c467e5d1164fb16fcb0286ab93
      fff3fe2f
  11. 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
  12. Aug 11, 2017
    • Dan Cashman's avatar
      Add missing attribute to compatibility file. · 758d2561
      Dan Cashman authored
      untrusted_app_visible_hwservice was an attribute that was meant to
      give partners time to add their HALs to AOSP.  It was removed from mr1
      and so needs to be accounted for in the compatibility mapping.
      
      Bug: 64321916
      Test: Builds with treble policy tests.
      Change-Id: I359a842083016f0cf6c9d7ffed2116feb9e159c6
      758d2561
    • 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
    • Martijn Coenen's avatar
      Prevent access to nonplat_service_contexts on full_treble. · 431a03bb
      Martijn Coenen authored
      On Full Treble devices, servicemanager should only service
      services from the platform service_contexts file.
      
      Created new type to separate plat_ and nonplat_service_contexts,
      and added new type to mapping (although I don't think this type
      should have been used by vendors).
      
      Bug: 36866029
      Test: Marlin/Taimen boot
      Change-Id: Ied112c64f22f8486a7415197660faa029add82d9
      431a03bb
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. Jul 29, 2017
    • Jeff Vander Stoep's avatar
      Fix build breakage · 624220fd
      Jeff Vander Stoep authored
      Remove reference to non-existent attribute domain_deprecated.
      
      Test: successfully build
      Change-Id: I9b019147c033bf4019e37cb11736eb0a91284d9d
      624220fd
  20. Jul 28, 2017
    • Jeff Vander Stoep's avatar
      domain_deprecated is dead · c3d8ca71
      Jeff Vander Stoep authored
      long live domain.te!
      
      Remove all references.
      
      Bug: 28760354
      Test: build
      Change-Id: I99953ecc7d275fdbe8e56d8f47a27d1f9e1cc09a
      (cherry picked from commit b8d14dc9a6b1593c4ad5210f3079bcac3a9aea33)
      c3d8ca71
  21. Jul 25, 2017
  22. 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
  23. Jul 12, 2017
    • Jeff Vander Stoep's avatar
      create separate usermodehelper type for sysfs · ece21859
      Jeff Vander Stoep authored
      Prevent files in /proc from incorrectly having sysfs_type attribute.
      
      Rework neverallows so that ueventd has write access to all of
      /sys which it needs to handle uevents.
      
      Bug: 63147833
      Test: Build. Flash angler, verify files are correctly labeled and no
          new denials are in the logs.
      
      Change-Id: Ib94d44e78cee0e83e2ac924f1c72e611e8e73558
      ece21859
    • 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
  24. 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
  25. Jul 10, 2017
    • Dan Cashman's avatar
      Make sure platform policy builds with compatible versions. · b04df6e3
      Dan Cashman authored
      Platform SELinux policy may be updated without a corresponding
      update to non-platform policy.  This is meant to be accomplished by
      maintaining a compatibility mapping file which will be built along
      with the current platform policy to link older non-platform policy.
      
      Introduce an example vendor policy built from 26.0 public policy and
      make sure that the current platform policy and mapping file, for that
      version, build with it.  Add this as a dependency for the
      selinux_treble_tests, which are meant to ensure treble properties,
      ultimately to provide this compatibility guarantee.
      
      Bug: 36899958
      Test: Current platform policy builds with oc-dev vendor policy and
      oc-dev mapping file.  Removed private type with no effect.  Removed
      public type without corresponding mapping entry causes build to fail.
      
      Change-Id: I7994ed651352e2da632fc91e598f819b64c05753
      b04df6e3
  26. Jul 07, 2017
    • Dan Cashman's avatar
      Record hal_tetheroffload_service for compatibility. · 4d9f41d7
      Dan Cashman authored
      Commit: e58a8de5 added a new type
      which has no analogue in 26.0.  Record it as such.
      
      Bug: 62573845
      Test: None. Prebuilt change only.
      Change-Id: I6b6d2aa64e0ac2c39c8d0427d333e6c7fc2b0bb1
      4d9f41d7
    • Dan Cashman's avatar
      Record memcg_device type for compat. · d0900526
      Dan Cashman authored
      Commit: 86cb5215 gave /dev/memcg a
      new label, but also explicitly prohibited access to vendor domains.
      Add the type to the 'new types' and don't map it to any other type
      for backwards compatibility.
      
      Bug: 62573845
      Test: None. Prebuilt change only.
      Change-Id: I8902716830b162ead69834544ace9e02a94c65b4
      d0900526
Loading