Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
6fdedf5f
Commit
6fdedf5f
authored
7 years ago
by
Martijn Coenen
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove mediacodec from binder violators." into oc-dev am:
f69d535c
am:
b76c352e
Change-Id: Ifc70c644ac582f2b3fb65a8f44a893e6626ee01f
parents
52b73858
b76c352e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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 @
6fdedf5f
...
...
@@ -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 @
6fdedf5f
...
...
@@ -202,6 +202,8 @@ hal_client_domain(system_server, hal_wifi_offload)
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 @
6fdedf5f
...
...
@@ -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 @
6fdedf5f
...
...
@@ -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