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
420be61f
Commit
420be61f
authored
7 years ago
by
Philip P. Moltmann
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow untrusted apps to read apks" into oc-mr1-dev
parents
50e798e0
bdac15aa
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
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 @
420be61f
...
@@ -474,9 +474,12 @@ neverallow appdomain
...
@@ -474,9 +474,12 @@ neverallow appdomain
{ create write setattr relabelfrom relabelto append unlink link rename };
{ create write setattr relabelfrom relabelto append unlink link rename };
# access tmp apk files
# 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 *;
{ 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.
# Access to factory files.
neverallow appdomain efs_file:dir_file_class_set write;
neverallow appdomain efs_file:dir_file_class_set write;
neverallow { appdomain -shell } efs_file:dir_file_class_set read;
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 @
420be61f
...
@@ -41,6 +41,9 @@ allow untrusted_app_all asec_public_file:file { execute execmod };
...
@@ -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:file r_file_perms;
allow untrusted_app_all shell_data_file:dir r_dir_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.
# Read and write system app data files passed over Binder.
# Motivating case was /data/data/com.android.settings/cache/*.jpg for
# Motivating case was /data/data/com.android.settings/cache/*.jpg for
# cropping or taking user photos.
# 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