blob: 49c87044c42f24f4f681df42256fb43a2e0ac367 [file] [log] [blame]
Nick Bray084faf02017-02-09 15:15:11 -08001type virtual_touchpad, domain;
Nick Kralevich5e372712018-09-27 10:21:37 -07002type virtual_touchpad_exec, system_file_type, exec_type, file_type;
Nick Bray084faf02017-02-09 15:15:11 -08003
4binder_use(virtual_touchpad)
5binder_service(virtual_touchpad)
6add_service(virtual_touchpad, virtual_touchpad_service)
7
Daniel Nicoara1fc07552017-04-20 17:34:52 -04008# Needed to check app permissions.
9binder_call(virtual_touchpad, system_server)
10
Nick Bray084faf02017-02-09 15:15:11 -080011# Requires access to /dev/uinput to create and feed the virtual device.
12allow virtual_touchpad uhid_device:chr_file { w_file_perms ioctl };
Daniel Nicoara1fc07552017-04-20 17:34:52 -040013
14# Requires access to the permission service to validate that clients have the
15# appropriate VR permissions.
16allow virtual_touchpad permission_service:service_manager find;