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
9ab5a278
Commit
9ab5a278
authored
Nov 20, 2016
by
Daniel Micay
Committed by
android-build-merger
Nov 20, 2016
Browse files
Options
Downloads
Plain Diff
only permit text relocations in untrusted_app
am:
dc083f59
Change-Id: I38a2613d04dc0e59dc9e76dff39ab5ae9a024ae4
parents
ff63c47d
dc083f59
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
public/app.te
+1
-1
1 addition, 1 deletion
public/app.te
public/domain.te
+1
-1
1 addition, 1 deletion
public/domain.te
public/untrusted_app.te
+3
-0
3 additions, 0 deletions
public/untrusted_app.te
with
5 additions
and
2 deletions
public/app.te
+
1
−
1
View file @
9ab5a278
...
...
@@ -215,7 +215,7 @@ allow appdomain shared_relro_file:file r_file_perms;
# Allow apps to read/execute installed binaries
allow appdomain apk_data_file:dir r_dir_perms;
allow appdomain apk_data_file:file
{
rx_file_perms
execmod }
;
allow appdomain apk_data_file:file rx_file_perms;
# /data/resource-cache
allow appdomain resourcecache_data_file:file r_file_perms;
...
...
This diff is collapsed.
Click to expand it.
public/domain.te
+
1
−
1
View file @
9ab5a278
...
...
@@ -483,7 +483,7 @@ neverallow * self:process { execstack execheap };
# prohibit non-zygote spawned processes from using shared libraries
# with text relocations. b/20013628 .
neverallow { domain -
appdomain
} file_type:file execmod;
neverallow { domain -
untrusted_app
} file_type:file execmod;
neverallow { domain -init } proc:{ file dir } mounton;
...
...
This diff is collapsed.
Click to expand it.
public/untrusted_app.te
+
3
−
0
View file @
9ab5a278
...
...
@@ -25,6 +25,9 @@ app_domain(untrusted_app)
net_domain(untrusted_app)
bluetooth_domain(untrusted_app)
# Legacy text relocations
allow untrusted_app apk_data_file:file execmod;
# Some apps ship with shared libraries and binaries that they write out
# to their sandbox directory and then execute.
allow untrusted_app app_data_file:file { rx_file_perms execmod };
...
...
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