Nick Bray | 084faf0 | 2017-02-09 15:15:11 -0800 | [diff] [blame] | 1 | type virtual_touchpad, domain; |
Nick Kralevich | 5e37271 | 2018-09-27 10:21:37 -0700 | [diff] [blame] | 2 | type virtual_touchpad_exec, system_file_type, exec_type, file_type; |
Nick Bray | 084faf0 | 2017-02-09 15:15:11 -0800 | [diff] [blame] | 3 | |
| 4 | binder_use(virtual_touchpad) |
| 5 | binder_service(virtual_touchpad) |
| 6 | add_service(virtual_touchpad, virtual_touchpad_service) |
| 7 | |
Daniel Nicoara | 1fc0755 | 2017-04-20 17:34:52 -0400 | [diff] [blame] | 8 | # Needed to check app permissions. |
| 9 | binder_call(virtual_touchpad, system_server) |
| 10 | |
Nick Bray | 084faf0 | 2017-02-09 15:15:11 -0800 | [diff] [blame] | 11 | # Requires access to /dev/uinput to create and feed the virtual device. |
| 12 | allow virtual_touchpad uhid_device:chr_file { w_file_perms ioctl }; |
Daniel Nicoara | 1fc0755 | 2017-04-20 17:34:52 -0400 | [diff] [blame] | 13 | |
| 14 | # Requires access to the permission service to validate that clients have the |
| 15 | # appropriate VR permissions. |
| 16 | allow virtual_touchpad permission_service:service_manager find; |