Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
22ebf24e
Commit
22ebf24e
authored
7 years ago
by
Daniel Nicoara
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow vr_hwc and virtual_touchpad to query for permissions" into oc-dev
parents
b9d5d5cc
1fc07550
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/virtual_touchpad.te
+7
-0
7 additions, 0 deletions
public/virtual_touchpad.te
public/vr_hwc.te
+6
-0
6 additions, 0 deletions
public/vr_hwc.te
with
13 additions
and
0 deletions
public/virtual_touchpad.te
+
7
−
0
View file @
22ebf24e
...
@@ -5,5 +5,12 @@ binder_use(virtual_touchpad)
...
@@ -5,5 +5,12 @@ binder_use(virtual_touchpad)
binder_service(virtual_touchpad)
binder_service(virtual_touchpad)
add_service(virtual_touchpad, virtual_touchpad_service)
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.
# Requires access to /dev/uinput to create and feed the virtual device.
allow virtual_touchpad uhid_device:chr_file { w_file_perms ioctl };
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;
This diff is collapsed.
Click to expand it.
public/vr_hwc.te
+
6
−
0
View file @
22ebf24e
...
@@ -8,6 +8,8 @@ binder_use(vr_hwc)
...
@@ -8,6 +8,8 @@ binder_use(vr_hwc)
binder_service(vr_hwc)
binder_service(vr_hwc)
binder_call(vr_hwc, surfaceflinger)
binder_call(vr_hwc, surfaceflinger)
# Needed to check for app permissions.
binder_call(vr_hwc, system_server)
# TODO(dnicoara): Remove once vr_wm is disabled.
# TODO(dnicoara): Remove once vr_wm is disabled.
binder_call(vr_hwc, vr_wm)
binder_call(vr_hwc, vr_wm)
...
@@ -25,3 +27,7 @@ allow vr_hwc ion_device:chr_file r_file_perms;
...
@@ -25,3 +27,7 @@ allow vr_hwc ion_device:chr_file r_file_perms;
# Allow connection to VR DisplayClient to get the primary display metadata
# Allow connection to VR DisplayClient to get the primary display metadata
# (ie: size).
# (ie: size).
use_pdx(vr_hwc, surfaceflinger)
use_pdx(vr_hwc, surfaceflinger)
# Requires access to the permission service to validate that clients have the
# appropriate VR permissions.
allow vr_hwc permission_service:service_manager find;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment