• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# evs reference hardware driver service
2hal_server_domain(hal_evs_driver, hal_evs)
3hal_client_domain(hal_evs_driver, hal_evs)
4
5# allow init to launch processes in this context
6type hal_evs_driver_exec, exec_type, file_type, vendor_file_type;
7init_daemon_domain(hal_evs_driver)
8binder_use(hal_evs_driver)
9
10# Allow use of USB devices, gralloc buffers, and surface flinger
11allow hal_evs_driver device:dir { open read };
12allow hal_evs_driver video_device:chr_file rw_file_perms;
13hal_client_domain(hal_evs_driver, hal_graphics_allocator);
14hal_client_domain(hal_evs_driver, hal_graphics_composer)
15hal_client_domain(hal_evs_driver, hal_configstore)
16
17allow hal_evs_driver gpu_device:chr_file rw_file_perms;
18binder_call(hal_evs_driver, surfaceflinger);
19allow hal_evs_driver surfaceflinger_service:service_manager find;
20allow hal_evs_driver ion_device:chr_file r_file_perms;
21
22# Allow the driver to access kobject uevents
23allow hal_evs_driver self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
24
25# Allow the driver to use automotive display proxy service
26allow hal_evs_driver automotive_display_service_server:binder call;
27allow hal_evs_driver fwk_automotive_display_hwservice:hwservice_manager find;
28
29