universal7870: rework drm sepolicy

This commit is contained in:
Alejandro 2020-06-14 20:52:08 +02:00
parent b2dd95350b
commit 2356defaed
6 changed files with 51 additions and 3 deletions

View file

@ -0,0 +1,23 @@
# hal_drm_widevine.te
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_widevine mediacodec:fd use;
allow hal_drm_widevine { appdomain -isolated_app }:fd use;
# /data/vendor/mediadrm/
allow hal_drm_widevine mediadrm_vendor_data_file:dir create_dir_perms;
allow hal_drm_widevine mediadrm_vendor_data_file:file create_file_perms;
# /dev/s5p-smem
allow hal_drm_widevine secmem_device:chr_file rw_file_perms;
# /dev/tzdev
#allow hal_drm_widevine tz_user_device:chr_file rw_file_perms;
# /efs/wv.keys
allow hal_drm_widevine efs_file:dir search;
allow hal_drm_widevine sec_efs_file:file r_file_perms;