Skip to content
Snippets Groups Projects
  1. Oct 07, 2016
  2. Oct 06, 2016
    • Prashant Malani's avatar
      system_server: Allow hwservicemanager to make binder calls · abb5c72b
      Prashant Malani authored
      Fixes the following denial:
      avc: denied { call } for pid=791 comm="system_server" scontext=u:r:system_server:s0 tcontext=u:r:hwservicemanager:s0 tclass=binder permissive=1
      
      Test: Builds, boots, vibrator works on bullhead
      Change-Id: I56a0a86b64f5d46dc490f6f3255009c40e6e3f8f
      abb5c72b
    • dcashman's avatar
      Split general policy into public and private components. · cc39f637
      dcashman authored
      Divide policy into public and private components.  This is the first
      step in splitting the policy creation for platform and non-platform
      policies.  The policy in the public directory will be exported for use
      in non-platform policy creation.  Backwards compatibility with it will
      be achieved by converting the exported policy into attribute-based
      policy when included as part of the non-platform policy and a mapping
      file will be maintained to be included with the platform policy that
      maps exported attributes of previous versions to the current platform
      version.
      
      Eventually we would like to create a clear interface between the
      platform and non-platform device components so that the exported policy,
      and the need for attributes is minimal.  For now, almost all types and
      avrules are left in public.
      
      Test: Tested by building policy and running on device.
      
      Change-Id: Idef796c9ec169259787c3f9d8f423edf4ce27f8c
      cc39f637
    • Andreas Gampe's avatar
      Sepolicy: Ignore otapreopt_chroot setsched denial · f1eabc56
      Andreas Gampe authored
      Ignore, as it's a side effect of mounting /vendor.
      
      Bug: 31116514
      Change-Id: If94a27a26181e40de5c5e60f5446de9ce2ccdba0
      (cherry picked from commit 0f81e066)
      f1eabc56
  3. Oct 05, 2016
  4. Oct 03, 2016
    • Jeff Vander Stoep's avatar
      app: audit usage of ion ioctls · 96a85d12
      Jeff Vander Stoep authored
      Test: builds and boots on Bullhead with no selinux audit messages.
      
      Bug: 29795149
      Bug: 30400942
      Change-Id: I93295424a03488234b233d5e2f86d3bf329e53fd
      96a85d12
  5. Oct 02, 2016
  6. Oct 01, 2016
  7. Sep 30, 2016
    • Janis Danisevskis's avatar
      fix lax service context lookup (II) · d6033b41
      Janis Danisevskis authored
      As fallout from the corresponding fix in libselinux,
      this patch adds the missing services without changing
      semantics.
      
      Test: bullhead builds and boots
      
      Bug: 31353148
      Change-Id: I21026c9435ffef956a59d61c4903174ac7b1ef95
      d6033b41
    • Janis Danisevskis's avatar
      fix lax service context lookup · 3e463294
      Janis Danisevskis authored
      Inform checkfc about new service label backend.
      
      Test: bullhead builds
      
      Bug: 31353148
      Change-Id: I499da36108e67483a4f9a18fd8cc7c8f13419abd
      3e463294
  8. Sep 28, 2016
    • Iliyan Malchev's avatar
      add policy for android.hardware.nfc@1.0-service · b8df90a2
      Iliyan Malchev authored
      
      android.hardware.nfc@1.0-service is the generic binderized
      HIDL package implementation of android.hardware.nfc@1.0
      
      Denials:
      avc: denied { read write } for pid=432 comm="android.hardwar"
      name="pn548" dev="tmpfs" ino=10228
      scontext=u:r:android_hardware_nfc_1_0_service:s0
      tcontext=u:object_r:nfc_device:s0 tclass=chr_file
      
      avc: denied { search } for pid=443 comm="Binder:430_1" name="nfc"
      dev="dm-0" ino=670433 scontext=u:r:android_hardware_nfc_1_0_service:s0
      tcontext=u:object_r:nfc_data_file:s0 tclass=dir
      
      Test: pass
      
      Change-Id: Id022b8d1706253ef65a37406c74ff883e12415b2
      Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
      b8df90a2
  9. Sep 27, 2016
  10. Sep 26, 2016
  11. Sep 24, 2016
  12. Sep 23, 2016
  13. Sep 22, 2016
  14. Sep 21, 2016
  15. Sep 19, 2016
    • Svet Ganov's avatar
      Move device serial behing a permission - selinux · 3286fca7
      Svet Ganov authored
      Build serial is non-user resettable freely available device
      identifier. It can be used by ad-netowrks to track the user
      across apps which violates the user's privacy.
      
      This change deprecates Build.SERIAL and adds a new Build.getSerial()
      API which requires holding the read_phone_state permission.
      The Build.SERIAL value is set to "undefined" for apps targeting
      high enough SDK and for legacy app the value is still available.
      
      bug:31402365
      
      Change-Id: I6309aa58c8993b3db4fea7b55aae05592408b6e4
      3286fca7
    • Mitchell Wills's avatar
      Add selinux policy for legacy Wifi HAL · a18b41e7
      Mitchell Wills authored
      avc: denied { call } for scontext=u:r:wificond:s0 tcontext=u:r:hwservicemanager:s0 tclass=binder permissive=1
      avc: denied { call } for scontext=u:r:wificond:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=binder permissive=1
      
      avc: denied { bind } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=netlink_socket permissive=1
      avc: denied { call } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:hwservicemanager:s0 tclass=binder permissive=1
      avc: denied { create } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=netlink_socket permissive=1
      avc: denied { create } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=udp_socket permissive=1
      avc: denied { getattr } for path="/proc/4355/net/psched" dev="proc" ino=4026535370 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1
      avc: denied { getattr } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=netlink_socket permissive=1
      avc: denied { ioctl } for path="socket:[28193]" dev="sockfs" ino=28193 ioctlcmd=8933 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=udp_socket permissive=1
      avc: denied { ioctl } for path="socket:[34821]" dev="sockfs" ino=34821 ioctlcmd=8933 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=udp_socket permissive=1
      avc: denied { net_admin } for capability=12 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=capability permissive=1
      avc: denied { net_raw } for capability=13 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=capability permissive=1
      avc: denied { open } for path="/proc/2754/net/psched" dev="proc" ino=4026535377 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1
      avc: denied { open } for path="/sys/class/net" dev="sysfs" ino=10488 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
      avc: denied { read } for name="net" dev="sysfs" ino=10488 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
      avc: denied { read } for name="psched" dev="proc" ino=4026535370 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1
      avc: denied { read } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=netlink_socket permissive=1
      avc: denied { setopt } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=netlink_socket permissive=1
      avc: denied { transfer } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:hwservicemanager:s0 tclass=binder permissive=1
      avc: denied { write } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=netlink_socket permissive=1
      avc: denied { create } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=netlink_socket permissive=0
      avc: denied { net_admin } for capability=12 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=capability permissive=0
      avc: denied { read } for name="net" dev="sysfs" ino=9862 scontext=u:r:wifi_hal_legacy:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
      avc: denied { create } for scontext=u:r:wifi_hal_legacy:s0 tcontext=u:r:wifi_hal_legacy:s0 tclass=udp_socket permissive=0
      
      Bug: 31352200
      Test: can boot angler & bullhead and start/stop HAL repeatedly
      Change-Id: Ide93730d362fb93602742fc10b22fff6e7d56f6b
      a18b41e7
  16. Sep 16, 2016
  17. Sep 15, 2016
  18. Sep 14, 2016
    • Treehugger Robot's avatar
    • Treehugger Robot's avatar
      52c8adb3
    • Treehugger Robot's avatar
    • Tianjie Xu's avatar
      Add sepolicy for update_verifier · 59379d8b
      Tianjie Xu authored
      (cherry picked from commit 5d8d2dc9)
      
      Grant update_verifier the permissions to read /data/ota_package/
      and the blocks on system partition.
      
      The denial messages:
      update_verifier: type=1400 audit(0.0:29): avc: denied { read }
      scontext=u:r:update_verifier:s0 tcontext=u:object_r:ota_package_file:s0 tclass=file permissive=1
      
      update_verifier: type=1400 audit(0.0:30): avc: denied { open }
      scontext=u:r:update_verifier:s0 tcontext=u:object_r:ota_package_file:s0 tclass=file permissive=1
      
      update_verifier: type=1400 audit(0.0:31): avc: denied { read } dev="tmpfs"
      scontext=u:r:update_verifier:s0 tcontext=u:object_r:system_block_device:s0 tclass=blk_file permissive=1
      
      update_verifier: type=1400 audit(0.0:32): avc: denied { open } dev="tmpfs"
      scontext=u:r:update_verifier:s0 tcontext=u:object_r:system_block_device:s0 tclass=blk_file permissive=1
      
      Test: On device, update_verifier reads the blocks successfully during boot time.
      Bug: 30020920
      
      Change-Id: I10777c1e6ba649b82c4a73171124742edeb05997
      59379d8b
    • Tao Bao's avatar
      update_verifier: Allow searching /dev/block. · 1e17dafc
      Tao Bao authored
      update_verifier calls bootcontrol HAL to mark the currently booting slot
      as successfully booted.
      
      avc: denied { search } for name="block" dev="tmpfs" scontext=u:r:update_verifier:s0 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
      avc: denied { search } for name="block" dev="tmpfs" scontext=u:r:update_verifier:s0 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
      
      Bug: 29569601
      Test: Device boots up with no update_verifier denials and 'bootctl is-slot-marked-successful 0' returns 0.
      Change-Id: I1baa7819bc829e3c4b83d7168008a5b06b01cc9f
      1e17dafc
Loading