diff options
author | Hridya Valsaraju <hridya@google.com> | 2020-12-21 21:30:09 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-12-21 21:30:09 +0000 |
commit | 535f863d3ac4598500171b59fc746d6e01d21d99 (patch) | |
tree | fce8e640a0fc759ede8352eb9e2c541e623394bf | |
parent | 86101abf3a1940cbc04b2736f0e0c11a6bb45dd1 (diff) | |
parent | 3f8f990e61eddd6387b8bfcda03039b7350ce11d (diff) | |
download | hikey-535f863d3ac4598500171b59fc746d6e01d21d99.tar.gz |
Give the DMA-BUF CMA heap its own label am: 7e8a630293 am: acd954d41b am: 3f8f990e61
Original change: https://android-review.googlesource.com/c/device/linaro/hikey/+/1530576
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iaa2facbbbfb66466f61be80f17f3c7b66f133e28
-rw-r--r-- | sepolicy/file_contexts | 2 | ||||
-rw-r--r-- | sepolicy/hal_graphics_allocator_default.te | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index e3add29c..6a1f8d3d 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -13,7 +13,7 @@ /dev/hifi_misc u:object_r:audio_device:s0 /dev/hi_vdec u:object_r:video_device:s0 /dev/hi_venc u:object_r:video_device:s0 -/dev/dma_heap/linux,cma u:object_r:graphics_device:s0 +/dev/dma_heap/linux,cma u:object_r:dmabuf_cma_heap_device:s0 /dev/graphics/fb0 u:object_r:graphics_device:s0 # files in /vendor diff --git a/sepolicy/hal_graphics_allocator_default.te b/sepolicy/hal_graphics_allocator_default.te index 833e957a..7f2b36bd 100644 --- a/sepolicy/hal_graphics_allocator_default.te +++ b/sepolicy/hal_graphics_allocator_default.te @@ -1,3 +1,6 @@ +type dmabuf_cma_heap_device, dmabuf_heap_device_type, dev_type; + allow hal_graphics_allocator_default graphics_device:dir search; allow hal_graphics_allocator_default graphics_device:chr_file { open read write ioctl map rw_file_perms}; allow hal_graphics_allocator_default dmabuf_system_heap_device:chr_file r_file_perms; +allow hal_graphics_allocator_default dmabuf_cma_heap_device:chr_file r_file_perms; |