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
f69d535c
Commit
f69d535c
authored
7 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove mediacodec from binder violators." into oc-dev
parents
80cab7de
fc80f480
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
private/app.te
+3
-0
3 additions, 0 deletions
private/app.te
private/system_server.te
+2
-0
2 additions, 0 deletions
private/system_server.te
public/mediacodec.te
+4
-6
4 additions, 6 deletions
public/mediacodec.te
public/mediaserver.te
+2
-0
2 additions, 0 deletions
public/mediaserver.te
with
11 additions
and
6 deletions
private/app.te
+
3
−
0
View file @
f69d535c
...
...
@@ -273,6 +273,9 @@ get_prop({ appdomain -isolated_app }, hwservicemanager_prop);
# Allow app to access the graphic allocator HAL
binder_call({ appdomain -isolated_app }, hal_graphics_allocator)
# Allow app access to mediacodec (IOMX HAL)
binder_call({ appdomain -isolated_app }, mediacodec)
# App can access configstore HAL which is read only
binder_call({ appdomain -isolated_app }, hal_configstore)
...
...
This diff is collapsed.
Click to expand it.
private/system_server.te
+
2
−
0
View file @
f69d535c
...
...
@@ -199,6 +199,8 @@ hal_client_domain(system_server, hal_wifi)
hal_client_domain(system_server, hal_wifi_supplicant)
binder_call(system_server, mediacodec)
# Talk with graphics composer fences
allow system_server hal_graphics_composer:fd use;
...
...
This diff is collapsed.
Click to expand it.
public/mediacodec.te
+
4
−
6
View file @
f69d535c
...
...
@@ -15,19 +15,17 @@ full_treble_only(`
not_full_treble(`
# on legacy devices, continue to allow /dev/binder traffic
binder_use(mediacodec)
binder_service(mediacodec)
add_service(mediacodec, mediacodec_service)
allow mediacodec mediametrics_service:service_manager find;
allow mediacodec surfaceflinger_service:service_manager find;
')
binder_call(mediacodec, binderservicedomain)
binder_call(mediacodec, appdomain)
binder_service(mediacodec)
# Allow mediacodec access to composer sync fences
allow mediacodec hal_graphics_composer:fd use;
# TODO(b/36604251): Remove this once OMX HAL stops using Binder
typeattribute mediacodec binder_in_vendor_violators;
add_service(mediacodec, mediacodec_service)
allow mediacodec mediametrics_service:service_manager find;
allow mediacodec surfaceflinger_service:service_manager find;
allow mediacodec gpu_device:chr_file rw_file_perms;
allow mediacodec video_device:chr_file rw_file_perms;
allow mediacodec video_device:dir search;
...
...
This diff is collapsed.
Click to expand it.
public/mediaserver.te
+
2
−
0
View file @
f69d535c
...
...
@@ -132,6 +132,8 @@ allow mediaserver system_server:fd use;
hal_client_domain(mediaserver, hal_allocator)
binder_call(mediaserver, mediacodec)
###
### neverallow rules
###
...
...
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