Keith Mok | a216b0d | 2021-06-01 20:13:02 +0000 | [diff] [blame] | 1 | # vehicle binding util startup application |
| 2 | type vehicle_binding_util, domain, coredomain; |
| 3 | |
| 4 | # allow init to start vehicle_binding_util |
| 5 | type vehicle_binding_util_exec, exec_type, file_type, system_file_type; |
| 6 | init_daemon_domain(vehicle_binding_util) |
| 7 | |
| 8 | # allow writing to kmsg during boot |
| 9 | allow vehicle_binding_util kmsg_device:chr_file { getattr w_file_perms }; |
| 10 | |
| 11 | # allow reading the binding property from vhal |
| 12 | hwbinder_use(vehicle_binding_util) |
| 13 | hal_client_domain(vehicle_binding_util, hal_vehicle) |
| 14 | |
| 15 | # allow executing vdc |
| 16 | domain_auto_trans(vehicle_binding_util, vdc_exec, vdc) |
| 17 | |
| 18 | # devpts is needed to redirect output from vdc |
| 19 | allow vehicle_binding_util devpts:chr_file rw_file_perms; |
| 20 | |