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
00f28f6d
Commit
00f28f6d
authored
6 years ago
by
Tri Vo
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Rename untrusted_app_visible_*' to include 'violators'."
parents
a11cdd2f
7f8b6cc6
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
private/app_neverallows.te
+2
-2
2 additions, 2 deletions
private/app_neverallows.te
private/technical_debt.cil
+10
-0
10 additions, 0 deletions
private/technical_debt.cil
public/attributes
+5
-5
5 additions, 5 deletions
public/attributes
with
17 additions
and
7 deletions
private/app_neverallows.te
+
2
−
2
View file @
00f28f6d
...
@@ -189,7 +189,7 @@ neverallow all_untrusted_apps {
...
@@ -189,7 +189,7 @@ neverallow all_untrusted_apps {
-hal_omx_hwservice
-hal_omx_hwservice
-hal_cas_hwservice
-hal_cas_hwservice
-hal_neuralnetworks_hwservice
-hal_neuralnetworks_hwservice
-untrusted_app_visible_hwservice
-untrusted_app_visible_hwservice
_violators
}:hwservice_manager find;
}:hwservice_manager find;
# Make sure that the following services are never accessible by untrusted_apps
# Make sure that the following services are never accessible by untrusted_apps
...
@@ -259,7 +259,7 @@ full_treble_only(`
...
@@ -259,7 +259,7 @@ full_treble_only(`
-hal_neuralnetworks_server
-hal_neuralnetworks_server
-hal_omx_server
-hal_omx_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
_violators
}:binder { call transfer };
}:binder { call transfer };
')
')
...
...
This diff is collapsed.
Click to expand it.
private/technical_debt.cil
+
10
−
0
View file @
00f28f6d
...
@@ -40,3 +40,13 @@
...
@@ -40,3 +40,13 @@
; Unfortunately, we can't currently express this in module policy language:
; Unfortunately, we can't currently express this in module policy language:
; typeattribute { appdomain -isolated_app } hal_neuralnetworks_client;
; typeattribute { appdomain -isolated_app } hal_neuralnetworks_client;
(typeattributeset hal_neuralnetworks_client ((and (appdomain) ((not (isolated_app))))))
(typeattributeset hal_neuralnetworks_client ((and (appdomain) ((not (isolated_app))))))
; TODO(b/112056006): move these to mapping files when/if we implement 'versioned' attributes.
; Rename untrusted_app_visible_* to untrusted_app_visible_*_violators.
; Unfortunately, we can't currently express this in module policy language:
; typeattribute untrusted_app_visible_hwservice untrusted_app_visible_hwservice_violators;
; typeattribute untrusted_app_visible_halserver untrusted_app_visible_halserver_violators;
(typeattribute untrusted_app_visible_hwservice)
(typeattributeset untrusted_app_visible_hwservice_violators (untrusted_app_visible_hwservice))
(typeattribute untrusted_app_visible_halserver)
(typeattributeset untrusted_app_visible_halserver_violators (untrusted_app_visible_halserver))
This diff is collapsed.
Click to expand it.
public/attributes
+
5
−
5
View file @
00f28f6d
...
@@ -191,19 +191,19 @@ expandattribute system_writes_vendor_properties_violators false;
...
@@ -191,19 +191,19 @@ expandattribute system_writes_vendor_properties_violators false;
# version, requiring all hwservices that are labeled with this
# version, requiring all hwservices that are labeled with this
# attribute to be submitted to AOSP in order to maintain their
# attribute to be submitted to AOSP in order to maintain their
# app-visibility.
# app-visibility.
attribute untrusted_app_visible_hwservice;
attribute untrusted_app_visible_hwservice
_violators
;
expandattribute untrusted_app_visible_hwservice false;
expandattribute untrusted_app_visible_hwservice
_violators
false;
# halserver domains that are accessible to untrusted applications. These
# halserver domains that are accessible to untrusted applications. These
# domains are typically those hosting hwservices attributed by the
# domains are typically those hosting hwservices attributed by the
# untrusted_app_visible_hwservice.
# untrusted_app_visible_hwservice
_violators
.
# WARNING: Use of this attribute should be avoided unless absolutely necessary.
# WARNING: Use of this attribute should be avoided unless absolutely necessary.
# It is a temporary allowance to aid the transition to treble and will be
# It is a temporary allowance to aid the transition to treble and will be
# removed in the future platform version, requiring all halserver domains that
# removed in the future platform version, requiring all halserver domains that
# are labeled with this attribute to be submitted to AOSP in order to maintain
# are labeled with this attribute to be submitted to AOSP in order to maintain
# their app-visibility.
# their app-visibility.
attribute untrusted_app_visible_halserver;
attribute untrusted_app_visible_halserver
_violators
;
expandattribute untrusted_app_visible_halserver false;
expandattribute untrusted_app_visible_halserver
_violators
false;
# PDX services
# PDX services
attribute pdx_endpoint_dir_type;
attribute pdx_endpoint_dir_type;
...
...
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