blob: f1f31e9fc39383a075a1be3e374ce7631e2e8b88 [file] [log] [blame]
Scott Randolph008c60b2017-06-01 17:24:53 -07001# evs_mock mock hardware driver service
Hans Changd86a5d52017-09-27 13:58:02 -07002type hal_evs_driver, domain, coredomain;
Scott Randolph008c60b2017-06-01 17:24:53 -07003hal_server_domain(hal_evs_driver, hal_evs)
Dan Harms4762e292019-05-17 12:17:53 -07004hal_client_domain(hal_evs_driver, hal_evs)
Scott Randolph008c60b2017-06-01 17:24:53 -07005
6# allow init to launch processes in this context
Dan Harms4762e292019-05-17 12:17:53 -07007type hal_evs_driver_exec, exec_type, file_type, system_file_type;
Scott Randolph008c60b2017-06-01 17:24:53 -07008init_daemon_domain(hal_evs_driver)
Changyeon Jod1cfa582019-03-01 16:39:09 -08009binder_use(hal_evs_driver)
Scott Randolph008c60b2017-06-01 17:24:53 -070010
11# Allow use of USB devices, gralloc buffers, and surface flinger
12allow hal_evs_driver device:dir { open read };
Changyeon Jod1cfa582019-03-01 16:39:09 -080013allow hal_evs_driver video_device:chr_file rw_file_perms;
Scott Randolph008c60b2017-06-01 17:24:53 -070014hal_client_domain(hal_evs_driver, hal_graphics_allocator);
Changyeon Jod1cfa582019-03-01 16:39:09 -080015hal_client_domain(hal_evs_driver, hal_graphics_composer)
16hal_client_domain(hal_evs_driver, hal_configstore)
Scott Randolph008c60b2017-06-01 17:24:53 -070017
Changyeon Jod1cfa582019-03-01 16:39:09 -080018allow hal_evs_driver gpu_device:chr_file rw_file_perms;
Scott Randolph008c60b2017-06-01 17:24:53 -070019binder_call(hal_evs_driver, surfaceflinger);
20allow hal_evs_driver surfaceflinger_service:service_manager find;
Changyeon Jod1cfa582019-03-01 16:39:09 -080021allow hal_evs_driver ion_device:chr_file r_file_perms;
Changyeon Jo6fa38022019-05-03 16:35:16 -070022
23# Allow the driver to access kobject uevents
24allow hal_evs_driver self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;