Basic project which need clearkey and widevine will fail to launch clearkey and widevine process, so we need move clearkey and widevine related sepolicy to basic repo MTK-Commit-Id: 889fb14b0d049c0fb53e1f2a45b43a1ba6700f9f Change-Id: I7b9154b9dcee05be01a2d5f1c7a5f8d365ce4da6 CR-Id: ALPS04737987 Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
17 lines
599 B
Plaintext
17 lines
599 B
Plaintext
# 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_widevine mediacodec:fd use;
|
|
allow hal_drm_widevine { 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;
|
|
|