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
346a913c
Commit
346a913c
authored
7 years ago
by
Martijn Coenen
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Prevent access to nonplat_service_contexts on full_treble." into oc-mr1-dev
parents
12d1c4f7
431a03bb
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
prebuilts/api/26.0/26.0.cil
+1
-1
1 addition, 1 deletion
prebuilts/api/26.0/26.0.cil
private/file_contexts
+2
-2
2 additions, 2 deletions
private/file_contexts
public/file.te
+3
-0
3 additions, 0 deletions
public/file.te
public/servicemanager.te
+2
-3
2 additions, 3 deletions
public/servicemanager.te
with
8 additions
and
6 deletions
prebuilts/api/26.0/26.0.cil
+
1
−
1
View file @
346a913c
...
@@ -538,7 +538,7 @@
...
@@ -538,7 +538,7 @@
(typeattributeset serial_device_26_0 (serial_device))
(typeattributeset serial_device_26_0 (serial_device))
(typeattributeset serialno_prop_26_0 (serialno_prop))
(typeattributeset serialno_prop_26_0 (serialno_prop))
(typeattributeset serial_service_26_0 (serial_service))
(typeattributeset serial_service_26_0 (serial_service))
(typeattributeset service_contexts_file_26_0 (service_contexts_file))
(typeattributeset service_contexts_file_26_0 (service_contexts_file
nonplat_service_contexts_file
))
(typeattributeset servicediscovery_service_26_0 (servicediscovery_service))
(typeattributeset servicediscovery_service_26_0 (servicediscovery_service))
(typeattributeset servicemanager_26_0 (servicemanager))
(typeattributeset servicemanager_26_0 (servicemanager))
(typeattributeset servicemanager_exec_26_0 (servicemanager_exec))
(typeattributeset servicemanager_exec_26_0 (servicemanager_exec))
...
...
This diff is collapsed.
Click to expand it.
private/file_contexts
+
2
−
2
View file @
346a913c
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
/sepolicy u:object_r:sepolicy_file:s0
/sepolicy u:object_r:sepolicy_file:s0
/plat_service_contexts u:object_r:service_contexts_file:s0
/plat_service_contexts u:object_r:service_contexts_file:s0
/plat_hwservice_contexts u:object_r:hwservice_contexts_file:s0
/plat_hwservice_contexts u:object_r:hwservice_contexts_file:s0
/nonplat_service_contexts u:object_r:service_contexts_file:s0
/nonplat_service_contexts u:object_r:
nonplat_
service_contexts_file:s0
/nonplat_hwservice_contexts u:object_r:hwservice_contexts_file:s0
/nonplat_hwservice_contexts u:object_r:hwservice_contexts_file:s0
/vndservice_contexts u:object_r:vndservice_contexts_file:s0
/vndservice_contexts u:object_r:vndservice_contexts_file:s0
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
/vendor/etc/selinux/nonplat_mac_permissions.xml u:object_r:mac_perms_file:s0
/vendor/etc/selinux/nonplat_mac_permissions.xml u:object_r:mac_perms_file:s0
/vendor/etc/selinux/nonplat_property_contexts u:object_r:property_contexts_file:s0
/vendor/etc/selinux/nonplat_property_contexts u:object_r:property_contexts_file:s0
/vendor/etc/selinux/nonplat_service_contexts u:object_r:service_contexts_file:s0
/vendor/etc/selinux/nonplat_service_contexts u:object_r:
nonplat_
service_contexts_file:s0
/vendor/etc/selinux/nonplat_hwservice_contexts u:object_r:hwservice_contexts_file:s0
/vendor/etc/selinux/nonplat_hwservice_contexts u:object_r:hwservice_contexts_file:s0
/vendor/etc/selinux/nonplat_file_contexts u:object_r:file_contexts_file:s0
/vendor/etc/selinux/nonplat_file_contexts u:object_r:file_contexts_file:s0
/vendor/etc/selinux/nonplat_seapp_contexts u:object_r:seapp_contexts_file:s0
/vendor/etc/selinux/nonplat_seapp_contexts u:object_r:seapp_contexts_file:s0
...
...
This diff is collapsed.
Click to expand it.
public/file.te
+
3
−
0
View file @
346a913c
...
@@ -313,6 +313,9 @@ type sepolicy_file, file_type;
...
@@ -313,6 +313,9 @@ type sepolicy_file, file_type;
# service_contexts file
# service_contexts file
type service_contexts_file, file_type;
type service_contexts_file, file_type;
# nonplat service_contexts file (only accessible on non full-treble devices)
type nonplat_service_contexts_file, file_type;
# hwservice_contexts file
# hwservice_contexts file
type hwservice_contexts_file, file_type;
type hwservice_contexts_file, file_type;
...
...
This diff is collapsed.
Click to expand it.
public/servicemanager.te
+
2
−
3
View file @
346a913c
...
@@ -16,10 +16,9 @@ allow servicemanager {
...
@@ -16,10 +16,9 @@ allow servicemanager {
-vndservicemanager
-vndservicemanager
}:binder transfer;
}:binder transfer;
# Access to all (system and vendor) service_contexts
# TODO(b/36866029) access to nonplat_service_contexts
# should not be allowed on full treble devices
allow servicemanager service_contexts_file:file r_file_perms;
allow servicemanager service_contexts_file:file r_file_perms;
# nonplat_service_contexts only accessible on non full-treble devices
not_full_treble('allow servicemanager nonplat_service_contexts_file:file r_file_perms;')
# Check SELinux permissions.
# Check SELinux permissions.
selinux_check_access(servicemanager)
selinux_check_access(servicemanager)
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