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
5b4f15e1
Commit
5b4f15e1
authored
8 years ago
by
Pawin Vongmasa
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Sepolicy for OMX hal."
parents
daeb5e01
5559d21a
No related branches found
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
+5
-0
5 additions, 0 deletions
private/app.te
private/system_server.te
+1
-0
1 addition, 0 deletions
private/system_server.te
public/mediacodec.te
+5
-0
5 additions, 0 deletions
public/mediacodec.te
public/mediaserver.te
+4
-0
4 additions, 0 deletions
public/mediaserver.te
with
15 additions
and
0 deletions
private/app.te
+
5
−
0
View file @
5b4f15e1
...
@@ -158,6 +158,11 @@ binder_call(appdomain, appdomain)
...
@@ -158,6 +158,11 @@ binder_call(appdomain, appdomain)
# Perform binder IPC to ephemeral apps.
# Perform binder IPC to ephemeral apps.
binder_call(appdomain, ephemeral_app)
binder_call(appdomain, ephemeral_app)
# hidl access for mediacodec
# TODO(b/34454312): only allow getting and talking to mediacodec service
hwbinder_use(appdomain)
hwallocator_use(appdomain)
# Already connected, unnamed sockets being passed over some other IPC
# Already connected, unnamed sockets being passed over some other IPC
# hence no sock_file or connectto permission. This appears to be how
# hence no sock_file or connectto permission. This appears to be how
# Chrome works, may need to be updated as more apps using isolated services
# Chrome works, may need to be updated as more apps using isolated services
...
...
This diff is collapsed.
Click to expand it.
private/system_server.te
+
1
−
0
View file @
5b4f15e1
...
@@ -179,6 +179,7 @@ binder_service(system_server)
...
@@ -179,6 +179,7 @@ binder_service(system_server)
# Perform HwBinder IPC.
# Perform HwBinder IPC.
hwbinder_use(system_server)
hwbinder_use(system_server)
hwallocator_use(system_server)
binder_call(system_server, hal_bluetooth)
binder_call(system_server, hal_bluetooth)
binder_call(system_server, hal_boot)
binder_call(system_server, hal_boot)
binder_call(system_server, hal_contexthub)
binder_call(system_server, hal_contexthub)
...
...
This diff is collapsed.
Click to expand it.
public/mediacodec.te
+
5
−
0
View file @
5b4f15e1
...
@@ -18,6 +18,11 @@ allow mediacodec video_device:dir search;
...
@@ -18,6 +18,11 @@ allow mediacodec video_device:dir search;
allow mediacodec ion_device:chr_file rw_file_perms;
allow mediacodec ion_device:chr_file rw_file_perms;
allow mediacodec hal_graphics_allocator:fd use;
allow mediacodec hal_graphics_allocator:fd use;
# hidl access
hwbinder_use(mediacodec)
hwallocator_use(mediacodec)
allow mediacodec system_file:dir { open read };
###
###
### neverallow rules
### neverallow rules
###
###
...
...
This diff is collapsed.
Click to expand it.
public/mediaserver.te
+
4
−
0
View file @
5b4f15e1
...
@@ -132,6 +132,10 @@ allow mediaserver hal_graphics_allocator:fd use;
...
@@ -132,6 +132,10 @@ allow mediaserver hal_graphics_allocator:fd use;
allow mediaserver system_server:fd use;
allow mediaserver system_server:fd use;
# hidl access
hwbinder_use(mediaserver)
hwallocator_use(mediaserver)
###
###
### neverallow rules
### 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