336d0fed4e
I took current AOSP policy as base, then removed sepolicy so that the set of type and attributes was a subset of types and attributes in Q sepolicy, with exception of those that have not yet been cleand up in current AOSP: mediaswcodec_server netd_socket mediaextractor_update_service thermalserviced thermalserviced_exec Bug: 133196056 Test: n/a Change-Id: I863429d61d3fad0272c1d3f1e429cd997513a74a Merged-In: I3e091652fa8d1757b1f71f7559186d5b32f000d5
16 lines
613 B
Text
16 lines
613 B
Text
type virtual_touchpad, domain;
|
|
type virtual_touchpad_exec, system_file_type, exec_type, file_type;
|
|
|
|
binder_use(virtual_touchpad)
|
|
binder_service(virtual_touchpad)
|
|
add_service(virtual_touchpad, virtual_touchpad_service)
|
|
|
|
# Needed to check app permissions.
|
|
binder_call(virtual_touchpad, system_server)
|
|
|
|
# Requires access to /dev/uinput to create and feed the virtual device.
|
|
allow virtual_touchpad uhid_device:chr_file { w_file_perms ioctl };
|
|
|
|
# Requires access to the permission service to validate that clients have the
|
|
# appropriate VR permissions.
|
|
allow virtual_touchpad permission_service:service_manager find;
|