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
1642d405
Commit
1642d405
authored
7 years ago
by
Yang Ni
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow applications to use NN API HAL services"
parents
66024968
ea331aa7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/app_neverallows.te
+2
-1
2 additions, 1 deletion
private/app_neverallows.te
private/technical_debt.cil
+5
-0
5 additions, 0 deletions
private/technical_debt.cil
with
7 additions
and
1 deletion
private/app_neverallows.te
+
2
−
1
View file @
1642d405
...
@@ -172,6 +172,7 @@ neverallow all_untrusted_apps {
...
@@ -172,6 +172,7 @@ neverallow all_untrusted_apps {
-hal_graphics_allocator_hwservice
-hal_graphics_allocator_hwservice
-hal_omx_hwservice
-hal_omx_hwservice
-hal_cas_hwservice
-hal_cas_hwservice
-hal_neuralnetworks_hwservice
-untrusted_app_visible_hwservice
-untrusted_app_visible_hwservice
}:hwservice_manager find;
}:hwservice_manager find;
...
@@ -194,7 +195,6 @@ neverallow all_untrusted_apps {
...
@@ -194,7 +195,6 @@ neverallow all_untrusted_apps {
hal_keymaster_hwservice
hal_keymaster_hwservice
hal_light_hwservice
hal_light_hwservice
hal_memtrack_hwservice
hal_memtrack_hwservice
hal_neuralnetworks_hwservice
hal_nfc_hwservice
hal_nfc_hwservice
hal_oemlock_hwservice
hal_oemlock_hwservice
hal_power_hwservice
hal_power_hwservice
...
@@ -238,6 +238,7 @@ full_treble_only(`
...
@@ -238,6 +238,7 @@ full_treble_only(`
-hal_configstore_server
-hal_configstore_server
-hal_graphics_allocator_server
-hal_graphics_allocator_server
-hal_cas_server
-hal_cas_server
-hal_neuralnetworks_server
-binder_in_vendor_violators # TODO(b/35870313): Remove once all violations are gone
-binder_in_vendor_violators # TODO(b/35870313): Remove once all violations are gone
-untrusted_app_visible_halserver
-untrusted_app_visible_halserver
}:binder { call transfer };
}:binder { call transfer };
...
...
This diff is collapsed.
Click to expand it.
private/technical_debt.cil
+
5
−
0
View file @
1642d405
...
@@ -31,3 +31,8 @@
...
@@ -31,3 +31,8 @@
; Unfortunately, we can't currently express this in module policy language:
; Unfortunately, we can't currently express this in module policy language:
; typeattribute hal_camera hal_allocator_client;
; typeattribute hal_camera hal_allocator_client;
(typeattributeset hal_allocator_client (hal_camera))
(typeattributeset hal_allocator_client (hal_camera))
; Apps, except isolated apps, are clients of Neuralnetworks HAL
; Unfortunately, we can't currently express this in module policy language:
; typeattribute { appdomain -isolated_app } hal_neuralnetworks_client;
(typeattributeset hal_neuralnetworks_client ((and (appdomain) ((not (isolated_app))))))
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