ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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;
 
# The Qualcomm DRM-HAL implementation uses a vendor-binder service provided
# by the HWC HAL.
vndbinder_use(hal_drm_widevine);
allow hal_drm_widevine qdisplay_service:service_manager { find };
binder_call(hal_drm_widevine, hal_graphics_composer)
 
allow hal_drm_widevine hal_allocator_server:fd use;
 
# TODO(b/71584763): Remove perfd use once QC implements a better method
typeattribute hal_drm_widevine data_between_core_and_vendor_violators;
allow hal_drm_widevine perfd:unix_stream_socket connectto;
allow hal_drm_widevine perfd_data_file:dir search;
allow hal_drm_widevine perfd_data_file:sock_file write;
 
allow hal_drm_widevine mediadrm_vendor_data_file:dir create_dir_perms;
allow hal_drm_widevine mediadrm_vendor_data_file:file create_file_perms;