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
816448d8
Commit
816448d8
authored
9 years ago
by
Andreas Gampe
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Sepolicy: Give zygote rights needed for A/B OTAs" into nyc-dev
parents
cdab09c7
f4bd8b30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
zygote.te
+22
-0
22 additions, 0 deletions
zygote.te
with
22 additions
and
0 deletions
zygote.te
+
22
−
0
View file @
816448d8
...
...
@@ -80,6 +80,28 @@ userdebug_or_eng(`
allow zygote method_trace_data_file:file { create w_file_perms };
')
###
### A/B OTA
###
# The zygote is responsible for detecting A/B OTA artifacts and moving them into
# the actual dalvik-cache.
# Allow zygote access to files in /data/ota.
# This includes reading symlinks in /data/ota/dalvik-cache. This is required for PIC mode boot
# images, where the oat file is symlinked to the original file in /system.
r_dir_file(zygote, ota_data_file)
# The zygote renames the OTA dalvik-cache to the regular dalvik-cache.
allow zygote ota_data_file:dir { rw_dir_perms rename reparent };
# And needs to relabel the entries, so as to have the dalvikcache_data_file label.
allow zygote ota_data_file:{ dir file } relabelfrom;
allow zygote dalvikcache_data_file:{ dir file } relabelto;
# The zygote also cleans up the now-empty dalvik-cache directory after an OTA.
allow zygote ota_data_file:dir rmdir;
###
### neverallow rules
###
...
...
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