2018-05-25 16:23:37 -07:00
|
|
|
type mediacodec, domain, mlstrustedsubject;
|
|
|
|
type mediacodec_exec, exec_type, vendor_file_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(mediacodec)
|
|
|
|
|
2018-09-20 12:07:44 -07:00
|
|
|
# can route /dev/binder traffic to /dev/vndbinder
|
|
|
|
vndbinder_use(mediacodec)
|
|
|
|
|
2018-05-25 16:23:37 -07:00
|
|
|
hal_server_domain(mediacodec, hal_omx)
|
|
|
|
|
|
|
|
hal_client_domain(mediacodec, hal_allocator)
|
|
|
|
hal_client_domain(mediacodec, hal_graphics_allocator)
|
2018-09-20 12:07:44 -07:00
|
|
|
|
|
|
|
allow mediacodec gpu_device:chr_file rw_file_perms;
|
|
|
|
allow mediacodec video_device:chr_file rw_file_perms;
|
|
|
|
allow mediacodec video_device:dir search;
|
|
|
|
|