Skip to content
Snippets Groups Projects
  1. Apr 28, 2017
  2. Apr 27, 2017
  3. Apr 26, 2017
  4. Apr 25, 2017
  5. Apr 24, 2017
    • Jeffrey Vander Stoep's avatar
    • Jeff Vander Stoep's avatar
      Android.mk: fix dependency typo · 5edd96d9
      Jeff Vander Stoep authored
      Bug: 37646565
      Test: build marlin-userdebug
      Change-Id: I3325d027fa7bdafb48f1f53ac052f2a68352c1dc
      5edd96d9
    • TreeHugger Robot's avatar
    • Alex Klyubin's avatar
      Assert untrusted apps can't add or list hwservicemanager · 5c5b6263
      Alex Klyubin authored
      This adds a neverallow rules which checks that SELinux app domains
      which host arbitrary code are not allowed to access hwservicemanager
      operations other than "find" operation for which there already are
      strict neverallow rules in the policy.
      
      Test: mmm system/sepolicy -- neverallow-only change
      Bug: 34454312
      Change-Id: I3b80c6ae2c254495704e0409e0c5c88f6ce3a6a7
      5c5b6263
    • Alex Klyubin's avatar
      Add a TODO for the Audio HAL socket use violation · cbc0d2bb
      Alex Klyubin authored
      Test: mmm system/sepolicy -- this is just a comment change
      Bug: 37640821
      Change-Id: I28c27b369268e75ab6b2d27bcb30b88acb2732e6
      cbc0d2bb
    • Alex Klyubin's avatar
      Add a TODO for the NFC HAL socket use violation · 2e53216b
      Alex Klyubin authored
      Test: mmm system/sepolicy -- this is just a comment change
      Bug: 37640900
      Change-Id: I7c96dde15f74822a19ecc1b28665913b54b3973b
      2e53216b
    • Jeff Vander Stoep's avatar
      Retain neverallow rules in CIL files · b8787693
      Jeff Vander Stoep authored
      Fixes issue where attributes used exlusively in neverallow
      rules were removed from policy.
      
      For on-device compile use the -N flag to skip neverallow tests.
      
      Policy size increases:
      vendor/etc/selinux/nonplat_sepolicy.cil 547849 -> 635637
      vendor/etc/selinux/precompiled_sepolicy 440248 -> 441076
      system/etc/selinux/plat_sepolicy.cil    567664 -> 745230
      
      For a total increase in system/vendor: 266182.
      
      Boot time changes:
      Pixel uses precompiled policy so boot time is not impacted.
      When forcing on-device compile on Marlin selinux policy compile
      time increases 510-520 ms -> 550-560 ms.
      
      Bug: 37357742
      Test: Build and boot Marlin.
      Test: Verify both precompiled and on-device compile work.
      Change-Id: Ib3cb53d376a96e34f55ac27d651a6ce2fabf6ba7
      b8787693
    • Alex Klyubin's avatar
      Assert apps can access only approved HwBinder services · 2a7f4fb0
      Alex Klyubin authored
      App domains which host arbitrary code must not have access to
      arbitrary HwBinder services. Such access unnecessarily increases the
      attack surface. The reason is twofold:
      1. HwBinder servers do not perform client authentication because HIDL
         currently does not expose caller UID information and, even if it
         did, many HwBinder services either operate at a layer below that of
         apps (e.g., HALs) or must not rely on app identity for
         authorization. Thus, to be safe, the default assumption is that
         a HwBinder service treats all its clients as equally authorized to
         perform operations offered by the service.
      2. HAL servers (a subset of HwBinder services) contain code with
         higher incidence rate of security issues than system/core
         components and have access to lower layes of the stack (all the way
         down to hardware) thus increasing opportunities for bypassing the
         Android security model.
      
      HwBinder services offered by core components (as opposed to vendor
      components) are considered safer because of point #2 above.
      
      Always same-process aka always-passthrough HwBinder services are
      considered safe for access by these apps. This is because these HALs
      by definition do not offer any additional access beyond what its
      client already as, because these services run in the process of the
      client.
      
      This commit thus introduces these two categories of HwBinder services
      in neverallow rules.
      
      Test: mmm system/sepolicy -- this does not change on-device policy
      Bug: 34454312
      Change-Id: I4f5f4dd10b3fc3bb9d262dda532d4a23dcdf061d
      2a7f4fb0
  6. Apr 22, 2017
  7. Apr 21, 2017
Loading