1 # define SELinux domain 2 type hal_drm_widevine, domain; 3 hal_server_domain(hal_drm_widevine, hal_drm) 4 5 type hal_drm_widevine_exec, exec_type, vendor_file_type, file_type; 6 init_daemon_domain(hal_drm_widevine) 7 8 allow hal_drm mediacodec:fd use; 9 allow hal_drm { appdomain -isolated_app }:fd use; 10 11 # The Qualcomm DRM-HAL implementation uses a vendor-binder service provided 12 # by the HWC HAL. 13 vndbinder_use(hal_drm_widevine); 14 allow hal_drm_widevine qdisplay_service:service_manager { find }; 15 binder_call(hal_drm_widevine, hal_graphics_composer) 16