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
4aad8b42
Commit
4aad8b42
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Camera: hal_camera FD access update"
parents
38d3eca0
6824dfd7
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
+3
-0
3 additions, 0 deletions
private/app.te
public/hal_camera.te
+2
-3
2 additions, 3 deletions
public/hal_camera.te
public/mediacodec.te
+2
-0
2 additions, 0 deletions
public/mediacodec.te
public/mediaserver.te
+1
-0
1 addition, 0 deletions
public/mediaserver.te
with
8 additions
and
3 deletions
private/app.te
+
3
−
0
View file @
4aad8b42
...
...
@@ -252,6 +252,9 @@ auditallow { appdomain userdebug_or_eng(`-su') } ion_device:chr_file { write app
allow { appdomain -isolated_app } hal_graphics_allocator:fd use;
# Allow app to access shared memory created by camera HAL1
allow { appdomain -isolated_app } hal_camera:fd use;
# TODO: switch to meminfo service
allow appdomain proc_meminfo:file r_file_perms;
...
...
This diff is collapsed.
Click to expand it.
public/hal_camera.te
+
2
−
3
View file @
4aad8b42
...
...
@@ -13,11 +13,10 @@ allow hal_camera ion_device:chr_file rw_file_perms;
# Both the client and the server need to use the graphics allocator
allow { hal_camera_client hal_camera_server } hal_graphics_allocator:fd use;
# Allow
fd to be passed between hal_camera related processes
# Allow
hal_camera to use fd from app,gralloc,and ashmem HAL
allow hal_camera { appdomain -isolated_app }:fd use;
allow { appdomain -isolated_app } hal_camera:fd use;
allow hal_camera surfaceflinger:fd use;
allow
mediaserv
er hal_
camera
:fd use;
allow
hal_cam
er
a
hal_
allocator
:fd use;
###
### neverallow rules
...
...
This diff is collapsed.
Click to expand it.
public/mediacodec.te
+
2
−
0
View file @
4aad8b42
...
...
@@ -17,6 +17,8 @@ allow mediacodec video_device:chr_file rw_file_perms;
allow mediacodec video_device:dir search;
allow mediacodec ion_device:chr_file rw_file_perms;
allow mediacodec hal_graphics_allocator:fd use;
allow mediacodec hal_camera:fd use;
# hidl access
hwbinder_use(mediacodec)
...
...
This diff is collapsed.
Click to expand it.
public/mediaserver.te
+
1
−
0
View file @
4aad8b42
...
...
@@ -129,6 +129,7 @@ allow mediaserver preloads_data_file:file { getattr read ioctl };
allow mediaserver ion_device:chr_file r_file_perms;
allow mediaserver hal_graphics_allocator:fd use;
allow mediaserver hal_camera:fd use;
allow mediaserver system_server:fd use;
...
...
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