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
c673770a
Commit
c673770a
authored
8 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Further restrict access to Binder services from vendor" into oc-dev
parents
3ad5c9e7
5c09d123
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/domain.te
+23
-7
23 additions, 7 deletions
public/domain.te
with
23 additions
and
7 deletions
public/domain.te
+
23
−
7
View file @
c673770a
...
@@ -442,19 +442,36 @@ full_treble_only(`
...
@@ -442,19 +442,36 @@ full_treble_only(`
-appdomain
-appdomain
-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
} binder_device:chr_file rw_file_perms;
} binder_device:chr_file rw_file_perms;
neverallow {
domain
-coredomain
-appdomain # restrictions for vendor apps are declared lower down
-binder_in_vendor_violators # TODO(b/35870313): Remove once all violations are gone
} service_manager_type:service_manager find;
# Vendor apps are permited to use only stable public services. If they were to use arbitrary
# services which can change any time framework/core is updated, breakage is likely.
neverallow {
appdomain
-coredomain
} {
service_manager_type
-app_api_service
-ephemeral_app_api_service
}:service_manager find;
neverallow {
neverallow {
domain
domain
-coredomain
-coredomain
-appdomain
-appdomain
-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
} servicemanager:binder { call transfer };
} servicemanager:binder { call transfer };
')
##
##
# On full TREBLE devices core android components and vendor components may
# On full TREBLE devices core android components and vendor components may
# not directly access each other data types. All communication must occur
# not directly access each other
's
data types. All communication must occur
# over HW binder. Open file descriptors may be passed and read/write/stat
# over HW binder. Open file descriptors may be passed and read/write/stat
# operations my be performed on those FDs. Disallow all other operations.
# operations my be performed on those FDs. Disallow all other operations.
#
full_treble_only(`
# do not allow vendor component access to coredomains data types
# do not allow vendor component access to coredomains data types
neverallow {
neverallow {
domain
domain
...
@@ -479,7 +496,6 @@ full_treble_only(`
...
@@ -479,7 +496,6 @@ full_treble_only(`
-appdomain
-appdomain
-coredata_in_vendor_violators
-coredata_in_vendor_violators
} system_data_file:dir ~search;
} system_data_file:dir ~search;
')
')
# On full TREBLE devices, socket communications between core components and vendor components are
# On full TREBLE devices, socket communications between core components and vendor components are
...
...
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