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
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
706bb202
Commit
706bb202
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Switch Dumpstate HAL policy to _client/_server"
parents
2f348392
47174e3b
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
public/attributes
+2
-0
2 additions, 0 deletions
public/attributes
public/dumpstate.te
+1
-3
1 addition, 3 deletions
public/dumpstate.te
public/hal_dumpstate.te
+3
-2
3 additions, 2 deletions
public/hal_dumpstate.te
vendor/hal_dumpstate_default.te
+1
-1
1 addition, 1 deletion
vendor/hal_dumpstate_default.te
with
7 additions
and
6 deletions
public/attributes
+
2
−
0
View file @
706bb202
...
@@ -138,6 +138,8 @@ attribute hal_drm;
...
@@ -138,6 +138,8 @@ attribute hal_drm;
attribute hal_drm_client;
attribute hal_drm_client;
attribute hal_drm_server;
attribute hal_drm_server;
attribute hal_dumpstate;
attribute hal_dumpstate;
attribute hal_dumpstate_client;
attribute hal_dumpstate_server;
attribute hal_fingerprint;
attribute hal_fingerprint;
attribute hal_fingerprint_client;
attribute hal_fingerprint_client;
attribute hal_fingerprint_server;
attribute hal_fingerprint_server;
...
...
This diff is collapsed.
Click to expand it.
public/dumpstate.te
+
1
−
3
View file @
706bb202
...
@@ -89,10 +89,8 @@ binder_call(dumpstate, { appdomain netd wificond })
...
@@ -89,10 +89,8 @@ binder_call(dumpstate, { appdomain netd wificond })
# Vibrate the device after we are done collecting the bugreport
# Vibrate the device after we are done collecting the bugreport
# For binderized mode:
# For binderized mode:
hwbinder_use(dumpstate)
hal_client_domain(dumpstate, hal_dumpstate)
binder_call(dumpstate, hal_dumpstate)
binder_call(dumpstate, hal_vibrator)
binder_call(dumpstate, hal_vibrator)
binder_call(dumpstate, hwservicemanager)
# For passthrough mode:
# For passthrough mode:
allow dumpstate sysfs_vibrator:file { rw_file_perms getattr };
allow dumpstate sysfs_vibrator:file { rw_file_perms getattr };
...
...
This diff is collapsed.
Click to expand it.
public/hal_dumpstate.te
+
3
−
2
View file @
706bb202
# call into dumpstate process (callbacks)
# HwBinder IPC from client to server, and callbacks
binder_call(hal_dumpstate, dumpstate)
binder_call(hal_dumpstate_client, hal_dumpstate_server)
binder_call(hal_dumpstate_server, hal_dumpstate_client)
# write bug reports in /data/data/com.android.shell/files/bugreports/bugreport
# write bug reports in /data/data/com.android.shell/files/bugreports/bugreport
allow hal_dumpstate shell_data_file:file write;
allow hal_dumpstate shell_data_file:file write;
This diff is collapsed.
Click to expand it.
vendor/hal_dumpstate_default.te
+
1
−
1
View file @
706bb202
type hal_dumpstate_default, domain;
type hal_dumpstate_default, domain;
hal_
impl
_domain(hal_dumpstate_default, hal_dumpstate)
hal_
server
_domain(hal_dumpstate_default, hal_dumpstate)
type hal_dumpstate_default_exec, exec_type, file_type;
type hal_dumpstate_default_exec, exec_type, file_type;
init_daemon_domain(hal_dumpstate_default)
init_daemon_domain(hal_dumpstate_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