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
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
c2d6acfe
Commit
c2d6acfe
authored
Mar 14, 2017
by
Alex Klyubin
Committed by
android-build-merger
Mar 14, 2017
Browse files
Options
Downloads
Plain Diff
Switch Sensors HAL policy to _client/_server am:
41518bec
am:
6a0ba6c5
am:
37ec9b0a
Change-Id: Iab8c116dc92313a7d987fd3c4b370da6d9483772
parents
04909edb
37ec9b0a
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
private/system_server.te
+1
-4
1 addition, 4 deletions
private/system_server.te
public/attributes
+2
-0
2 additions, 0 deletions
public/attributes
public/hal_sensors.te
+5
-2
5 additions, 2 deletions
public/hal_sensors.te
vendor/hal_sensors_default.te
+1
-1
1 addition, 1 deletion
vendor/hal_sensors_default.te
with
9 additions
and
7 deletions
private/system_server.te
+
1
−
4
View file @
c2d6acfe
...
@@ -179,7 +179,7 @@ binder_call(system_server, hal_ir)
...
@@ -179,7 +179,7 @@ binder_call(system_server, hal_ir)
binder_call(system_server, hal_light)
binder_call(system_server, hal_light)
binder_call(system_server, hal_memtrack)
binder_call(system_server, hal_memtrack)
binder_call(system_server, hal_power)
binder_call(system_server, hal_power)
binder_call
(system_server, hal_sensors)
hal_client_domain
(system_server, hal_sensors)
binder_call(system_server, hal_thermal)
binder_call(system_server, hal_thermal)
binder_call(system_server, hal_usb)
binder_call(system_server, hal_usb)
binder_call(system_server, hal_vibrator)
binder_call(system_server, hal_vibrator)
...
@@ -450,9 +450,6 @@ allow system_server cache_private_backup_file:file create_file_perms;
...
@@ -450,9 +450,6 @@ allow system_server cache_private_backup_file:file create_file_perms;
allow system_server usb_device:chr_file rw_file_perms;
allow system_server usb_device:chr_file rw_file_perms;
allow system_server usb_device:dir r_dir_perms;
allow system_server usb_device:dir r_dir_perms;
# Allow system to talk to sensors
allow system_server sensors_device:chr_file rw_file_perms;
# Read from HW RNG (needed by EntropyMixer).
# Read from HW RNG (needed by EntropyMixer).
allow system_server hw_random_device:chr_file r_file_perms;
allow system_server hw_random_device:chr_file r_file_perms;
...
...
This diff is collapsed.
Click to expand it.
public/attributes
+
2
−
0
View file @
c2d6acfe
...
@@ -160,6 +160,8 @@ attribute hal_memtrack;
...
@@ -160,6 +160,8 @@ attribute hal_memtrack;
attribute hal_nfc;
attribute hal_nfc;
attribute hal_power;
attribute hal_power;
attribute hal_sensors;
attribute hal_sensors;
attribute hal_sensors_client;
attribute hal_sensors_server;
attribute hal_telephony;
attribute hal_telephony;
attribute hal_thermal;
attribute hal_thermal;
attribute hal_usb;
attribute hal_usb;
...
...
This diff is collapsed.
Click to expand it.
public/hal_sensors.te
+
5
−
2
View file @
c2d6acfe
# HwBinder IPC from client to server
binder_call(hal_sensors_client, hal_sensors_server)
# Allow sensor hals to access ashmem memory allocated by apps
# Allow sensor hals to access ashmem memory allocated by apps
allow hal_sensors { appdomain -isolated_app }:fd use;
allow hal_sensors { appdomain -isolated_app }:fd use;
This diff is collapsed.
Click to expand it.
vendor/hal_sensors_default.te
+
1
−
1
View file @
c2d6acfe
type hal_sensors_default, domain;
type hal_sensors_default, domain;
hal_
impl
_domain(hal_sensors_default, hal_sensors)
hal_
server
_domain(hal_sensors_default, hal_sensors)
type hal_sensors_default_exec, exec_type, file_type;
type hal_sensors_default_exec, exec_type, file_type;
init_daemon_domain(hal_sensors_default)
init_daemon_domain(hal_sensors_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