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
b8bb1d4c
Commit
b8bb1d4c
authored
Dec 22, 2016
by
Treehugger Robot
Committed by
Gerrit Code Review
Dec 22, 2016
Browse files
Options
Downloads
Plain Diff
Merge "Sepolicy for allocator hal."
parents
20151072
72d18125
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
private/file_contexts
+1
-0
1 addition, 0 deletions
private/file_contexts
private/hal_allocator.te
+1
-0
1 addition, 0 deletions
private/hal_allocator.te
public/hal_allocator.te
+6
-0
6 additions, 0 deletions
public/hal_allocator.te
public/te_macros
+8
-0
8 additions, 0 deletions
public/te_macros
with
16 additions
and
0 deletions
private/file_contexts
+
1
−
0
View file @
b8bb1d4c
...
@@ -244,6 +244,7 @@
...
@@ -244,6 +244,7 @@
/system/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0
/system/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0
/system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0
/system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0
/system/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_default_exec:s0
/system/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_default_exec:s0
/system/bin/hw/android\.hidl\.memory@1\.0-service u:object_r:hal_allocator_exec:s0
#############################
#############################
# Vendor files
# Vendor files
...
...
This diff is collapsed.
Click to expand it.
private/hal_allocator.te
0 → 100644
+
1
−
0
View file @
b8bb1d4c
init_daemon_domain(hal_allocator)
This diff is collapsed.
Click to expand it.
public/hal_allocator.te
0 → 100644
+
6
−
0
View file @
b8bb1d4c
# allocator subsystem
type hal_allocator, domain;
type hal_allocator_exec, exec_type, file_type;
# hwbinder access
hwbinder_use(hal_allocator)
This diff is collapsed.
Click to expand it.
public/te_macros
+
8
−
0
View file @
b8bb1d4c
...
@@ -222,6 +222,14 @@ define(`binder_service', `
...
@@ -222,6 +222,14 @@ define(`binder_service', `
typeattribute $1 binderservicedomain;
typeattribute $1 binderservicedomain;
')
')
#####################################
# hwallocator_use(domain)
# Allow a domain to use Hidl shared memory
define(`hwallocator_use', `
# Call into the allocator hal
binder_call($1, hal_allocator);
'')
#####################################
#####################################
# wakelock_use(domain)
# wakelock_use(domain)
# Allow domain to manage wake locks
# Allow domain to manage wake locks
...
...
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