blob: cca0a1db10ebc00bc7bc4f8208983ef5264a1299 [file] [log] [blame]
Caleb Connollyc445fab2021-08-11 14:42:57 +01001# Vibrator HAL scans input devices to find the haptics device
2# it then calls ioctls on it.
Caleb Connollyc445fab2021-08-11 14:42:57 +01003init_daemon_domain(hal_vibrator_default);
4
5allow hal_vibrator_default input_device:chr_file { ioctl open read write };
6# EVIOCGBIT + EV_FF
7allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4535;
8# EVIOCSFF
9allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4580;
10# EVIOCRMFF
11allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4581;
Caleb Connolly35f873e2021-11-20 09:11:42 +000012allow hal_vibrator_default input_device:dir { open read search };