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
9072d0dd
Commit
9072d0dd
authored
8 years ago
by
TreeHugger Robot
Committed by
Android (Google) Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Sepolicy: Add search rights for A/B dexopt" into nyc-mr1-dev
parents
2d4a12cb
8cac2586
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dex2oat.te
+1
-1
1 addition, 1 deletion
dex2oat.te
postinstall_dexopt.te
+3
-1
3 additions, 1 deletion
postinstall_dexopt.te
with
4 additions
and
2 deletions
dex2oat.te
+
1
−
1
View file @
9072d0dd
...
@@ -24,7 +24,7 @@ allow dex2oat user_profile_data_file:file { getattr read lock };
...
@@ -24,7 +24,7 @@ allow dex2oat user_profile_data_file:file { getattr read lock };
# Allow dex2oat to use file descriptors from otapreopt.
# Allow dex2oat to use file descriptors from otapreopt.
allow dex2oat postinstall_dexopt:fd use;
allow dex2oat postinstall_dexopt:fd use;
allow dex2oat postinstall_file:dir getattr;
allow dex2oat postinstall_file:dir
{
getattr
search }
;
# Allow dex2oat access to files in /data/ota.
# Allow dex2oat access to files in /data/ota.
allow dex2oat ota_data_file:dir ra_dir_perms;
allow dex2oat ota_data_file:dir ra_dir_perms;
...
...
This diff is collapsed.
Click to expand it.
postinstall_dexopt.te
+
3
−
1
View file @
9072d0dd
...
@@ -8,7 +8,7 @@ type postinstall_dexopt, domain;
...
@@ -8,7 +8,7 @@ type postinstall_dexopt, domain;
# init_daemon_domain(otapreopt)
# init_daemon_domain(otapreopt)
allow postinstall_dexopt self:capability { chown dac_override fowner setgid setuid };
allow postinstall_dexopt self:capability { chown dac_override fowner setgid setuid };
allow postinstall_dexopt postinstall_file:dir getattr;
allow postinstall_dexopt postinstall_file:dir
{
getattr
search }
;
allow postinstall_dexopt proc:file { getattr open read };
allow postinstall_dexopt proc:file { getattr open read };
allow postinstall_dexopt tmpfs:file read;
allow postinstall_dexopt tmpfs:file read;
...
@@ -55,3 +55,5 @@ allow postinstall_dexopt installd:process sigchld;
...
@@ -55,3 +55,5 @@ allow postinstall_dexopt installd: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...
allow postinstall_dexopt otapreopt_chroot:fd use;
allow postinstall_dexopt otapreopt_chroot:fd use;
allow postinstall_dexopt cpuctl_device:dir search;
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