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
d48016e0
Commit
d48016e0
authored
8 years ago
by
Alex Klyubin
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
Switch Camera HAL policy to _client/_server am:
3a8426bf
am:
205d5cec
am:
0aa2046d
am:
ac6081e7
Change-Id: Iadd638f507171153a63972537bc66576f4194971
parents
729e8fb5
ac6081e7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
public/attributes
+2
-0
2 additions, 0 deletions
public/attributes
public/cameraserver.te
+1
-14
1 addition, 14 deletions
public/cameraserver.te
public/hal_camera.te
+5
-3
5 additions, 3 deletions
public/hal_camera.te
vendor/hal_camera_default.te
+1
-1
1 addition, 1 deletion
vendor/hal_camera_default.te
with
9 additions
and
18 deletions
public/attributes
+
2
−
0
View file @
d48016e0
...
@@ -128,6 +128,8 @@ attribute hal_audio_client;
...
@@ -128,6 +128,8 @@ attribute hal_audio_client;
attribute hal_audio_server;
attribute hal_audio_server;
attribute hal_bluetooth;
attribute hal_bluetooth;
attribute hal_camera;
attribute hal_camera;
attribute hal_camera_client;
attribute hal_camera_server;
attribute hal_configstore;
attribute hal_configstore;
attribute hal_contexthub;
attribute hal_contexthub;
attribute hal_drm;
attribute hal_drm;
...
...
This diff is collapsed.
Click to expand it.
public/cameraserver.te
+
1
−
14
View file @
d48016e0
...
@@ -7,19 +7,9 @@ binder_call(cameraserver, binderservicedomain)
...
@@ -7,19 +7,9 @@ binder_call(cameraserver, binderservicedomain)
binder_call(cameraserver, appdomain)
binder_call(cameraserver, appdomain)
binder_service(cameraserver)
binder_service(cameraserver)
hwbinder_use(cameraserver)
hal_client_domain(cameraserver, hal_camera)
binder_call(cameraserver, hal_camera)
binder_call(cameraserver, hwservicemanager)
# access /data/misc/camera
allow cameraserver camera_data_file:dir create_dir_perms;
allow cameraserver camera_data_file:file create_file_perms;
allow cameraserver video_device:dir r_dir_perms;
allow cameraserver video_device:chr_file rw_file_perms;
allow cameraserver camera_device:chr_file rw_file_perms;
allow cameraserver ion_device:chr_file rw_file_perms;
allow cameraserver ion_device:chr_file rw_file_perms;
allow cameraserver hal_graphics_allocator:fd use;
add_service(cameraserver, cameraserver_service)
add_service(cameraserver, cameraserver_service)
allow cameraserver appops_service:service_manager find;
allow cameraserver appops_service:service_manager find;
...
@@ -31,9 +21,6 @@ allow cameraserver processinfo_service:service_manager find;
...
@@ -31,9 +21,6 @@ allow cameraserver processinfo_service:service_manager find;
allow cameraserver scheduling_policy_service:service_manager find;
allow cameraserver scheduling_policy_service:service_manager find;
allow cameraserver surfaceflinger_service:service_manager find;
allow cameraserver surfaceflinger_service:service_manager find;
# For HIDL hwservicemanager
allow cameraserver system_file:dir r_dir_perms;
###
###
### neverallow rules
### neverallow rules
###
###
...
...
This diff is collapsed.
Click to expand it.
public/hal_camera.te
+
5
−
3
View file @
d48016e0
hwbinder_use(hal_camera)
# HwBinder IPC from clients to server and callbacks
binder_call(hal_camera, cameraserver)
binder_call(hal_camera_client, hal_camera_server)
binder_call(hal_camera_server, hal_camera_client)
# access /data/misc/camera
# access /data/misc/camera
allow hal_camera camera_data_file:dir create_dir_perms;
allow hal_camera camera_data_file:dir create_dir_perms;
...
@@ -9,7 +10,8 @@ allow hal_camera video_device:dir r_dir_perms;
...
@@ -9,7 +10,8 @@ allow hal_camera video_device:dir r_dir_perms;
allow hal_camera video_device:chr_file rw_file_perms;
allow hal_camera video_device:chr_file rw_file_perms;
allow hal_camera camera_device:chr_file rw_file_perms;
allow hal_camera camera_device:chr_file rw_file_perms;
allow hal_camera ion_device:chr_file rw_file_perms;
allow hal_camera ion_device:chr_file rw_file_perms;
allow hal_camera hal_graphics_allocator:fd use;
# Both the client and the server need to use the graphics allocator
allow { hal_camera_client hal_camera_server } hal_graphics_allocator:fd use;
###
###
...
...
This diff is collapsed.
Click to expand it.
vendor/hal_camera_default.te
+
1
−
1
View file @
d48016e0
type hal_camera_default, domain;
type hal_camera_default, domain;
hal_
impl
_domain(hal_camera_default, hal_camera)
hal_
server
_domain(hal_camera_default, hal_camera)
type hal_camera_default_exec, exec_type, file_type;
type hal_camera_default_exec, exec_type, file_type;
init_daemon_domain(hal_camera_default)
init_daemon_domain(hal_camera_default)
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