hikey/hikey960: Add userland support for dmabuf heap dev dir
This patch adds the userland bits to support the dmabuf heap
dev dir (/dev/dma_heap/*).
Change-Id: Id837c19adc931973e9791355b06bd0aceff60275
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 5c010f0..0fb634c 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(/.*)? u:object_r:graphics_device:s0
/dev/graphics/fb0 u:object_r:graphics_device:s0
# files in /vendor
diff --git a/ueventd.common.rc b/ueventd.common.rc
index b7dd505..7f37c25 100644
--- a/ueventd.common.rc
+++ b/ueventd.common.rc
@@ -1,5 +1,9 @@
modalias_handling enabled
+subsystem dma_heap
+ devname uevent_devpath
+ dirname /dev/dma_heap
+
subsystem usbmisc
devname uevent_devname
@@ -14,6 +18,8 @@
/dev/hi_vdec 0660 system camera
/dev/hi_venc 0660 system camera
/dev/ion 0666 system graphics
+/dev/dma_heap/system 0666 system graphics
+/dev/dma_heap/linux,cma 0666 system graphics
/dev/graphics/fb0 0666 system graphics
/sys/devices/platform/ddr_devfreq/devfreq/ddr_devfreq min_freq 0644 system system