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/te_macros b/sepolicy/te_macros
new file mode 100644
index 0000000..322827a
--- /dev/null
+++ b/sepolicy/te_macros
@@ -0,0 +1,8 @@
+#####################################
+# gpu_access(client_domain)
+# Allow client_domain to communicate with the GPU
+define(`gpu_access', `
+allow $1 dri_device:dir { open read search };
+allow $1 sysfs_gpu:dir search;
+allow $1 sysfs_gpu:file { getattr open read };
+')