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