blob: 29e1a90154506d8070efaf38556a34b292deb388 [file] [log] [blame]
Steven Moreland7baf7252018-05-25 16:23:37 -07001type mediacodec, domain, mlstrustedsubject;
2type mediacodec_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(mediacodec)
5
6not_full_treble(`
7 # on legacy devices, continue to allow /dev/binder traffic
8 binder_use(mediacodec)
9 binder_service(mediacodec)
10 add_service(mediacodec, mediacodec_service)
11 allow mediacodec mediametrics_service:service_manager find;
12 allow mediacodec surfaceflinger_service:service_manager find;
13')
14
Chong Zhangbdbfff12018-09-20 12:07:44 -070015# can route /dev/binder traffic to /dev/vndbinder
16vndbinder_use(mediacodec)
17
Steven Moreland7baf7252018-05-25 16:23:37 -070018hal_server_domain(mediacodec, hal_omx)
19
20hal_client_domain(mediacodec, hal_allocator)
Steven Moreland7baf7252018-05-25 16:23:37 -070021hal_client_domain(mediacodec, hal_graphics_allocator)
Chong Zhangbdbfff12018-09-20 12:07:44 -070022
23allow mediacodec gpu_device:chr_file rw_file_perms;
24allow mediacodec video_device:chr_file rw_file_perms;
25allow mediacodec video_device:dir search;
26