diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2022-04-13 19:01:57 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2022-04-14 19:55:15 +0800 |
commit | ebe37aa7d5fc27e8cf5e6a1803e5c6bba3c33513 (patch) | |
tree | 8cd23397e953e9a8eb5ca487829f9028ee874cef | |
parent | f81198849b66db6d3c76efc185d643d7d91c1f05 (diff) | |
download | hikey-ebe37aa7d5fc27e8cf5e6a1803e5c6bba3c33513.tar.gz |
Revert "Give the DMA-BUF CMA heap its own label"
This reverts commit 7e8a6302936f6d1a9a94a7ee76a34f05b4d700cd.
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: Id4c8eb910a25b7d02dfaa147d05c075523677455
-rw-r--r-- | sepolicy/file_contexts | 2 | ||||
-rw-r--r-- | sepolicy/hal_graphics_allocator_default.te | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 1e712113..e8e1c565 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:dmabuf_cma_heap_device:s0 +/dev/dma_heap/linux,cma u:object_r:graphics_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 7f2b36bd..833e957a 100644 --- a/sepolicy/hal_graphics_allocator_default.te +++ b/sepolicy/hal_graphics_allocator_default.te @@ -1,6 +1,3 @@ -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; |