Caleb Connolly | c445fab | 2021-08-11 14:42:57 +0100 | [diff] [blame] | 1 | # Vibrator HAL scans input devices to find the haptics device |
| 2 | # it then calls ioctls on it. |
| 3 | # type hal_vibrator_default_exec, exec_type, vendor_file_type, file_type; |
| 4 | init_daemon_domain(hal_vibrator_default); |
| 5 | |
| 6 | allow hal_vibrator_default input_device:chr_file { ioctl open read write }; |
| 7 | # EVIOCGBIT + EV_FF |
| 8 | allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4535; |
| 9 | # EVIOCSFF |
| 10 | allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4580; |
| 11 | # EVIOCRMFF |
| 12 | allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4581; |
| 13 | allow hal_vibrator_default input_device:dir { open read search }; |