maxwen | 3a14901 | 2019-12-07 12:10:02 +0100 | [diff] [blame] | 1 | type vncflinger_exec, exec_type, file_type; |
| 2 | type vncflinger, domain; |
| 3 | typeattribute vncflinger coredomain; |
| 4 | |
| 5 | init_daemon_domain(vncflinger) |
| 6 | binder_use(vncflinger) |
| 7 | net_domain(vncflinger); |
| 8 | |
| 9 | # uinput |
| 10 | allow vncflinger uhid_device:chr_file rw_file_perms; |
| 11 | |
| 12 | # read buffers from surfaceflinger |
| 13 | allow vncflinger ion_device:chr_file r_file_perms; |
| 14 | allow vncflinger surfaceflinger_service:service_manager find; |
| 15 | binder_call(vncflinger, surfaceflinger); |
| 16 | |
| 17 | # buffer callbacks |
| 18 | binder_call(surfaceflinger, vncflinger); |
| 19 | |
| 20 | get_prop(vncflinger, hwservicemanager_prop) |
| 21 | allow vncflinger hal_graphics_allocator:fd use; |
| 22 | allow vncflinger same_process_hal_file:file { execute read open getattr map }; |
| 23 | hal_client_domain(vncflinger, hal_graphics_allocator); |
| 24 | hwbinder_use(vncflinger); |