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
8276dfb4
Commit
8276dfb4
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Revert "Remove execmod support for newer API versions""
parents
4aad8b42
9be90fb6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
private/untrusted_app_25.te
+0
-3
0 additions, 3 deletions
private/untrusted_app_25.te
private/untrusted_app_all.te
+5
-2
5 additions, 2 deletions
private/untrusted_app_all.te
public/domain.te
+1
-1
1 addition, 1 deletion
public/domain.te
with
6 additions
and
6 deletions
private/untrusted_app_25.te
+
0
−
3
View file @
8276dfb4
...
@@ -42,6 +42,3 @@ allow untrusted_app_25 proc_misc:file r_file_perms;
...
@@ -42,6 +42,3 @@ allow untrusted_app_25 proc_misc:file r_file_perms;
# https://github.com/strazzere/anti-emulator/blob/master/AntiEmulator/src/diff/strazzere/anti/emulator/FindEmulator.java
# https://github.com/strazzere/anti-emulator/blob/master/AntiEmulator/src/diff/strazzere/anti/emulator/FindEmulator.java
# This will go away in a future Android release
# This will go away in a future Android release
allow untrusted_app_25 proc_tty_drivers:file r_file_perms;
allow untrusted_app_25 proc_tty_drivers:file r_file_perms;
# Legacy text relocations
allow untrusted_app_25 { apk_data_file app_data_file asec_public_file }:file execmod;
This diff is collapsed.
Click to expand it.
private/untrusted_app_all.te
+
5
−
2
View file @
8276dfb4
...
@@ -17,15 +17,18 @@
...
@@ -17,15 +17,18 @@
### seapp_contexts.
### seapp_contexts.
###
###
# Legacy text relocations
allow untrusted_app_all apk_data_file:file execmod;
# Some apps ship with shared libraries and binaries that they write out
# Some apps ship with shared libraries and binaries that they write out
# to their sandbox directory and then execute.
# to their sandbox directory and then execute.
allow untrusted_app_all app_data_file:file rx_file_perms;
allow untrusted_app_all app_data_file:file
{
rx_file_perms
execmod }
;
# ASEC
# ASEC
allow untrusted_app_all asec_apk_file:file r_file_perms;
allow untrusted_app_all asec_apk_file:file r_file_perms;
allow untrusted_app_all asec_apk_file:dir r_dir_perms;
allow untrusted_app_all asec_apk_file:dir r_dir_perms;
# Execute libs in asec containers.
# Execute libs in asec containers.
allow untrusted_app_all asec_public_file:file execute;
allow untrusted_app_all asec_public_file:file
{
execute
execmod }
;
# Used by Finsky / Android "Verify Apps" functionality when
# Used by Finsky / Android "Verify Apps" functionality when
# running "adb install foo.apk".
# running "adb install foo.apk".
...
...
This diff is collapsed.
Click to expand it.
public/domain.te
+
1
−
1
View file @
8276dfb4
...
@@ -499,7 +499,7 @@ neverallow * self:process { execstack execheap };
...
@@ -499,7 +499,7 @@ neverallow * self:process { execstack execheap };
# prohibit non-zygote spawned processes from using shared libraries
# prohibit non-zygote spawned processes from using shared libraries
# with text relocations. b/20013628 .
# with text relocations. b/20013628 .
neverallow { domain -untrusted_app_
25
} file_type:file execmod;
neverallow { domain -untrusted_app_
all
} file_type:file execmod;
neverallow { domain -init } proc:{ file dir } mounton;
neverallow { domain -init } proc:{ file dir } mounton;
...
...
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