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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
b5511cbe
Commit
b5511cbe
authored
Jul 13, 2016
by
Andreas Gampe
Committed by
android-build-merger
Jul 13, 2016
Browse files
Options
Downloads
Plain Diff
Sepolicy: Adapt for new A/B OTA flow
am:
d47c1e93
Change-Id: Ib8d04ca1902a3bae78fc1d8eb447aaca6c54829e
parents
90eb79b9
d47c1e93
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show 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
+3
-1
3 additions, 1 deletion
postinstall.te
postinstall_dexopt.te
+2
-2
2 additions, 2 deletions
postinstall_dexopt.te
with
10 additions
and
10 deletions
installd.te
+
0
−
5
View file @
b5511cbe
...
@@ -70,11 +70,6 @@ domain_auto_trans(installd, profman_exec, profman)
...
@@ -70,11 +70,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 @
b5511cbe
...
@@ -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
+
3
−
1
View file @
b5511cbe
...
@@ -33,3 +33,5 @@ binder_call(postinstall, system_server)
...
@@ -33,3 +33,5 @@ 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)
This diff is collapsed.
Click to expand it.
postinstall_dexopt.te
+
2
−
2
View file @
b5511cbe
...
@@ -49,8 +49,8 @@ selinux_check_access(postinstall_dexopt)
...
@@ -49,8 +49,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