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
bc996c5a
Commit
bc996c5a
authored
7 years ago
by
Philip P. Moltmann
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow untrusted apps to read apks" into oc-mr1-dev am:
420be61f
am:
d6d35b2a
Change-Id: Icf0c6e855942e926d66c19ce05290946ef0ae51a
parents
620b0a63
d6d35b2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/app.te
+4
-1
4 additions, 1 deletion
private/app.te
private/untrusted_app_all.te
+3
-0
3 additions, 0 deletions
private/untrusted_app_all.te
with
7 additions
and
1 deletion
private/app.te
+
4
−
1
View file @
bc996c5a
...
...
@@ -474,9 +474,12 @@ neverallow appdomain
{ create write setattr relabelfrom relabelto append unlink link rename };
# access tmp apk files
neverallow { appdomain -platform_app -priv_app }
neverallow { appdomain
-untrusted_app_all
-platform_app -priv_app }
{ apk_tmp_file apk_private_tmp_file }:dir_file_class_set *;
neverallow untrusted_app_all { apk_tmp_file apk_private_tmp_file }:{ devfile_class_set dir fifo_file lnk_file sock_file } *;
neverallow untrusted_app_all { apk_tmp_file apk_private_tmp_file }:file ~{ getattr read };
# Access to factory files.
neverallow appdomain efs_file:dir_file_class_set write;
neverallow { appdomain -shell } efs_file:dir_file_class_set read;
...
...
This diff is collapsed.
Click to expand it.
private/untrusted_app_all.te
+
3
−
0
View file @
bc996c5a
...
...
@@ -41,6 +41,9 @@ allow untrusted_app_all asec_public_file:file { execute execmod };
allow untrusted_app_all shell_data_file:file r_file_perms;
allow untrusted_app_all shell_data_file:dir r_dir_perms;
# Allow to read staged apks.
allow untrusted_app_all { apk_tmp_file apk_private_tmp_file }:file {read getattr};
# Read and write system app data files passed over Binder.
# Motivating case was /data/data/com.android.settings/cache/*.jpg for
# cropping or taking user photos.
...
...
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