summaryrefslogtreecommitdiffstats
path: root/sepolicy/common/hal_drm_widevine.te
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy/common/hal_drm_widevine.te')
-rw-r--r--sepolicy/common/hal_drm_widevine.te15
1 files changed, 15 insertions, 0 deletions
diff --git a/sepolicy/common/hal_drm_widevine.te b/sepolicy/common/hal_drm_widevine.te
new file mode 100644
index 0000000..8198410
--- /dev/null
+++ b/sepolicy/common/hal_drm_widevine.te
@@ -0,0 +1,15 @@
+# define SELinux domain
+type hal_drm_widevine, domain;
+hal_server_domain(hal_drm_widevine, hal_drm)
+
+type hal_drm_widevine_exec, exec_type, vendor_file_type, file_type;
+init_daemon_domain(hal_drm_widevine)
+
+allow hal_drm mediacodec:fd use;
+allow hal_drm { appdomain -isolated_app }:fd use;
+
+vndbinder_use(hal_drm_widevine);
+hal_client_domain(hal_drm_widevine, hal_graphics_composer);
+allow hal_drm_widevine hal_allocator_server:fd use;
+allow hal_drm_widevine mediadrm_vendor_data_file:dir create_dir_perms;
+allow hal_drm_widevine mediadrm_vendor_data_file:file create_file_perms;