emulator: allows drm hal vendor access

BUG: 76029272
Change-Id: Ib4de8b4cd5cf5899bee23c798156006d3680ab8d
This commit is contained in:
bohu 2018-03-21 10:24:25 -07:00
parent 8982289d3d
commit a9127502d3
3 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1 @@
type mediadrm_vendor_data_file, file_type, data_file_type;

View file

@ -33,3 +33,7 @@
/vendor/lib(64)?/lib_renderControl_enc\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libGLESv1_enc\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libGLESv2_enc\.so u:object_r:same_process_hal_file:s0
# data
/data/vendor/mediadrm(/.*)? u:object_r:mediadrm_vendor_data_file:s0

View file

@ -10,3 +10,5 @@ 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 mediadrm_vendor_data_file:dir create_dir_perms;
allow hal_drm_widevine mediadrm_vendor_data_file:file create_file_perms;