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
f7813cca
Commit
f7813cca
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Sepolicy: Adapt for new A/B OTA flow"
parents
72a2d64d
03daf853
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
installd.te
+0
-5
0 additions, 5 deletions
installd.te
otapreopt_chroot.te
+5
-2
5 additions, 2 deletions
otapreopt_chroot.te
postinstall.te
+2
-0
2 additions, 0 deletions
postinstall.te
postinstall_dexopt.te
+2
-2
2 additions, 2 deletions
postinstall_dexopt.te
with
9 additions
and
9 deletions
installd.te
+
0
−
5
View file @
f7813cca
...
@@ -73,11 +73,6 @@ domain_auto_trans(installd, profman_exec, profman)
...
@@ -73,11 +73,6 @@ domain_auto_trans(installd, profman_exec, profman)
# Run idmap in its own sandbox.
# Run idmap in its own sandbox.
domain_auto_trans(installd, idmap_exec, idmap)
domain_auto_trans(installd, idmap_exec, idmap)
# Run otapreopt in its own sandbox.
domain_auto_trans(installd, otapreopt_chroot_exec, otapreopt_chroot)
# otapreopt_chroot will transition into postinstall_dexopt, which will spawn a child.
allow installd postinstall_dexopt:process sigchld;
# Upgrade from unlabeled userdata.
# Upgrade from unlabeled userdata.
# Just need enough to remove and/or relabel it.
# Just need enough to remove and/or relabel it.
allow installd unlabeled:dir { getattr search relabelfrom rw_dir_perms rmdir };
allow installd unlabeled:dir { getattr search relabelfrom rw_dir_perms rmdir };
...
...
This diff is collapsed.
Click to expand it.
otapreopt_chroot.te
+
5
−
2
View file @
f7813cca
...
@@ -10,5 +10,8 @@ allow otapreopt_chroot self:capability { sys_admin sys_chroot };
...
@@ -10,5 +10,8 @@ allow otapreopt_chroot self:capability { sys_admin sys_chroot };
# Allow to transition to postinstall_ota, to run otapreopt in its own sandbox.
# Allow to transition to postinstall_ota, to run otapreopt in its own sandbox.
domain_auto_trans(otapreopt_chroot, postinstall_file, postinstall_dexopt)
domain_auto_trans(otapreopt_chroot, postinstall_file, postinstall_dexopt)
# Allow otapreopt to use file descriptors from installd.
# Allow otapreopt to use file descriptors from update-engine. It will
allow otapreopt_chroot installd:fd use;
# close them immediately.
allow otapreopt_chroot postinstall:fd use;
allow otapreopt_chroot update_engine:fd use;
allow otapreopt_chroot update_engine:fifo_file write;
This diff is collapsed.
Click to expand it.
postinstall.te
+
2
−
0
View file @
f7813cca
...
@@ -30,6 +30,8 @@ binder_call(postinstall, system_server)
...
@@ -30,6 +30,8 @@ binder_call(postinstall, system_server)
# Need to talk to the otadexopt service.
# Need to talk to the otadexopt service.
allow postinstall otadexopt_service:service_manager find;
allow postinstall otadexopt_service:service_manager find;
domain_auto_trans(postinstall, otapreopt_chroot_exec, otapreopt_chroot)
# No domain other than update_engine and recovery (via update_engine_sideload)
# No domain other than update_engine and recovery (via update_engine_sideload)
# should transition to postinstall, as it is only meant to run during the
# should transition to postinstall, as it is only meant to run during the
# update.
# update.
...
...
This diff is collapsed.
Click to expand it.
postinstall_dexopt.te
+
2
−
2
View file @
f7813cca
...
@@ -47,8 +47,8 @@ selinux_check_access(postinstall_dexopt)
...
@@ -47,8 +47,8 @@ selinux_check_access(postinstall_dexopt)
# We have to manually transition, as we don't have an entrypoint.
# We have to manually transition, as we don't have an entrypoint.
domain_auto_trans(postinstall_dexopt, postinstall_file, dex2oat)
domain_auto_trans(postinstall_dexopt, postinstall_file, dex2oat)
# install
d
wants to know about our child.
#
Post
install wants to know about our child.
allow postinstall_dexopt install
d
:process sigchld;
allow postinstall_dexopt
post
install:process sigchld;
# Allow otapreopt to use file descriptors from otapreopt_chroot.
# Allow otapreopt to use file descriptors from otapreopt_chroot.
# TODO: Probably we can actually close file descriptors...
# TODO: Probably we can actually close file descriptors...
...
...
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