xref: /aosp_15_r20/system/sepolicy/private/virtual_touchpad.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1*e4a36f41SAndroid Build Coastguard Workertypeattribute virtual_touchpad coredomain;
2*e4a36f41SAndroid Build Coastguard Worker
3*e4a36f41SAndroid Build Coastguard Workerinit_daemon_domain(virtual_touchpad)
4*e4a36f41SAndroid Build Coastguard Worker
5*e4a36f41SAndroid Build Coastguard Workerbinder_use(virtual_touchpad)
6*e4a36f41SAndroid Build Coastguard Workerbinder_service(virtual_touchpad)
7*e4a36f41SAndroid Build Coastguard Workeradd_service(virtual_touchpad, virtual_touchpad_service)
8*e4a36f41SAndroid Build Coastguard Worker
9*e4a36f41SAndroid Build Coastguard Worker# Needed to check app permissions.
10*e4a36f41SAndroid Build Coastguard Workerbinder_call(virtual_touchpad, system_server)
11*e4a36f41SAndroid Build Coastguard Worker
12*e4a36f41SAndroid Build Coastguard Worker# Requires access to /dev/uinput to create and feed the virtual device.
13*e4a36f41SAndroid Build Coastguard Workerallow virtual_touchpad uhid_device:chr_file { w_file_perms ioctl };
14*e4a36f41SAndroid Build Coastguard Worker
15*e4a36f41SAndroid Build Coastguard Worker# Requires access to the permission service to validate that clients have the
16*e4a36f41SAndroid Build Coastguard Worker# appropriate VR permissions.
17*e4a36f41SAndroid Build Coastguard Workerallow virtual_touchpad permission_service:service_manager find;
18