universal7570: import sepolicy from 7870

The sepolicy before seems to be broken

Change-Id: I890a28429f03e47a183a0a0b755987f3495994c3
This commit is contained in:
Hendra Manudinata 2021-03-13 05:07:20 +07:00
parent f22a0e7cdd
commit f0e4521a9f
No known key found for this signature in database
GPG key ID: 8DB7A83A9B4EE2D6
53 changed files with 1095 additions and 58 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;