blob: 9a755bfd930b673af0cc789ce41bc8b68f40a4f8 [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.
3# type hal_vibrator_default_exec, exec_type, vendor_file_type, file_type;
4init_daemon_domain(hal_vibrator_default);
5
6allow hal_vibrator_default input_device:chr_file { ioctl open read write };
7# EVIOCGBIT + EV_FF
8allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4535;
9# EVIOCSFF
10allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4580;
11# EVIOCRMFF
12allowxperm hal_vibrator_default input_device:chr_file ioctl 0x4581;
13allow hal_vibrator_default input_device:dir { open read search };