aosp_beryllium: Update device config
Bring aosp_beryllium device config up to speed with post
Android-10 AOSP master changes. This device config is
relatively close to upstream AOSP/device/linaro/dragonboard
project now.
Signed-off-by: Amit Pundir <pundiramit@gmail.com>
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index d7d3dd8..2d09e90 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -1,16 +1,20 @@
-/dev/ttyMSM0 u:object_r:console_device:s0
+/dev/dri u:object_r:dri_device:s0
+/dev/dri/card0 u:object_r:graphics_device:s0
+/dev/dri/renderD128 u:object_r:gpu_device:s0
+/dev/ttyMSM0 u:object_r:console_device:s0
-/dev/dri/card0 u:object_r:gpu_device:s0
-/dev/dri/renderD128 u:object_r:gpu_device:s0
-
-/sys/devices/platform/soc/ae00000.mdss u:object_r:sysfs_mdss:s0
-
+/sys/devices/platform/soc/ae00000.mdss u:object_r:sysfs_gpu:s0
/sys/devices/platform/soc/c440000.spmi/spmi-0/0-00/c440000.spmi:pmic@0:rtc@6000/rtc u:object_r:sysfs_rtc:s0
+
+# sysfs path changed in v5.4+ kernel for sdm845 devices
+/sys/devices/platform/soc@0/ae00000.mdss u:object_r:sysfs_gpu:s0
+/sys/devices/platform/soc@0/c440000.spmi/spmi-0/0-00/c440000.spmi:pmic@0:rtc@6000/rtc u:object_r:sysfs_rtc:s0
+
/vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service\.software u:object_r:hal_gatekeeper_default_exec:s0
-/(vendor|system/vendor)/lib(64)?/hw/gralloc\.gbm\.so u:object_r:same_process_hal_file:s0
-/(vendor|system/vendor)/lib(64)?/libglapi\.so u:object_r:same_process_hal_file:s0
-/(vendor|system/vendor)/lib(64)?/libdrm\.so u:object_r:same_process_hal_file:s0
-/(vendor|system/vendor)/lib(64)?/libgbm\.so u:object_r:same_process_hal_file:s0
-/(vendor|system/vendor)/lib(64)?/dri/gallium_dri\.so u:object_r:same_process_hal_file:s0
-/(vendor|system/vendor)/lib(64)?/libdrm_freedreno\.so u:object_r:same_process_hal_file:s0
+/vendor/lib(64)?/dri/.* u:object_r:same_process_hal_file:s0
+/vendor/lib(64)?/hw/gralloc\.gbm\.so u:object_r:same_process_hal_file:s0
+/vendor/lib(64)?/libdrm\.so u:object_r:same_process_hal_file:s0
+/vendor/lib(64)?/libdrm_freedreno\.so u:object_r:same_process_hal_file:s0
+/vendor/lib(64)?/libgbm\.so u:object_r:same_process_hal_file:s0
+/vendor/lib(64)?/libglapi\.so u:object_r:same_process_hal_file:s0