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. |
Caleb Connolly | c445fab | 2021-08-11 14:42:57 +0100 | [diff] [blame] | 3 | init_daemon_domain(hal_vibrator_default); |
| 4 | |
| 5 | allow hal_vibrator_default input_device:chr_file { ioctl open read write }; |
| 6 | # EVIOCGBIT + EV_FF |
| 7 | allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4535; |
| 8 | # EVIOCSFF |
| 9 | allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4580; |
| 10 | # EVIOCRMFF |
| 11 | allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4581; |
Caleb Connolly | 35f873e | 2021-11-20 09:11:42 +0000 | [diff] [blame] | 12 | allow hal_vibrator_default input_device:dir { open read search }; |