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 | |
Yu Shan | d5af7b7 | 2022-04-29 16:12:14 -0700 | [diff] [blame^] | 11 | # allow reading the binding property from HIDL VHAL. |
Keith Mok | a216b0d | 2021-06-01 20:13:02 +0000 | [diff] [blame] | 12 | hwbinder_use(vehicle_binding_util) |
Yu Shan | d5af7b7 | 2022-04-29 16:12:14 -0700 | [diff] [blame^] | 13 | # allow reading the binding property from AIDL VHAL. |
| 14 | binder_use(vehicle_binding_util) |
Keith Mok | a216b0d | 2021-06-01 20:13:02 +0000 | [diff] [blame] | 15 | hal_client_domain(vehicle_binding_util, hal_vehicle) |
| 16 | |
| 17 | # allow executing vdc |
| 18 | domain_auto_trans(vehicle_binding_util, vdc_exec, vdc) |
| 19 | |
| 20 | # devpts is needed to redirect output from vdc |
| 21 | allow vehicle_binding_util devpts:chr_file rw_file_perms; |
| 22 | |