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
a5647da3
Commit
a5647da3
authored
7 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove rules blocking vrcore_app to connect to VR HWC and VirtualTouchpad" into oc-dev
parents
a9d7b895
52276383
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public/domain.te
+2
-0
2 additions, 0 deletions
public/domain.te
public/virtual_touchpad.te
+0
-3
0 additions, 3 deletions
public/virtual_touchpad.te
public/vr_hwc.te
+1
-3
1 addition, 3 deletions
public/vr_hwc.te
with
3 additions
and
6 deletions
public/domain.te
+
2
−
0
View file @
a5647da3
...
@@ -549,6 +549,8 @@ full_treble_only(`
...
@@ -549,6 +549,8 @@ full_treble_only(`
-nfc_service
-nfc_service
-radio_service
-radio_service
-surfaceflinger_service
-surfaceflinger_service
-virtual_touchpad_service
-vr_hwc_service
-vr_manager_service
-vr_manager_service
}:service_manager find;
}:service_manager find;
neverallow {
neverallow {
...
...
This diff is collapsed.
Click to expand it.
public/virtual_touchpad.te
+
0
−
3
View file @
a5647da3
...
@@ -7,6 +7,3 @@ add_service(virtual_touchpad, virtual_touchpad_service)
...
@@ -7,6 +7,3 @@ add_service(virtual_touchpad, virtual_touchpad_service)
# 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 };
# Limit access so that nothing else can inject input.
neverallow { domain -virtual_touchpad -vr_wm } virtual_touchpad_service:service_manager find;
This diff is collapsed.
Click to expand it.
public/vr_hwc.te
+
1
−
3
View file @
a5647da3
...
@@ -8,6 +8,7 @@ binder_use(vr_hwc)
...
@@ -8,6 +8,7 @@ binder_use(vr_hwc)
binder_service(vr_hwc)
binder_service(vr_hwc)
binder_call(vr_hwc, surfaceflinger)
binder_call(vr_hwc, surfaceflinger)
# TODO(dnicoara): Remove once vr_wm is disabled.
binder_call(vr_hwc, vr_wm)
binder_call(vr_hwc, vr_wm)
add_service(vr_hwc, vr_hwc_service)
add_service(vr_hwc, vr_hwc_service)
...
@@ -24,6 +25,3 @@ allow vr_hwc ion_device:chr_file r_file_perms;
...
@@ -24,6 +25,3 @@ 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)
# Limit access so only vr_wm can connect.
neverallow { domain -vr_hwc -vr_wm } vr_hwc_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