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
881fe06f
Commit
881fe06f
authored
7 years ago
by
Nick Kralevich
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Validate no-cross-domain /proc/PID access
am:
7a463809
Change-Id: Iba80938afccd21f0c3b69626223b35c672358e77
parents
508db351
7a463809
Branches
Branches containing commit
Tags
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
-2
4 additions, 2 deletions
private/app.te
public/te_macros
+2
-0
2 additions, 0 deletions
public/te_macros
with
6 additions
and
2 deletions
private/app.te
+
4
−
2
View file @
881fe06f
...
@@ -402,8 +402,10 @@ neverallow appdomain zygote_socket:sock_file write;
...
@@ -402,8 +402,10 @@ neverallow appdomain zygote_socket:sock_file write;
# ptrace access to non-app domains.
# ptrace access to non-app domains.
neverallow appdomain { domain -appdomain }:process ptrace;
neverallow appdomain { domain -appdomain }:process ptrace;
# Write access to /proc/pid entries for any non-app domain.
# Read or write access to /proc/pid entries for any non-app domain.
neverallow appdomain { domain -appdomain }:file write;
# A different form of hidepid=2 like protections
neverallow appdomain { domain -appdomain }:file no_w_file_perms;
neverallow { appdomain -shell } { domain -appdomain }:file no_rw_file_perms;
# signal access to non-app domains.
# signal access to non-app domains.
# sigchld allowed for parent death notification.
# sigchld allowed for parent death notification.
...
...
This diff is collapsed.
Click to expand it.
public/te_macros
+
2
−
0
View file @
881fe06f
...
@@ -172,6 +172,8 @@ typeattribute $1 appdomain;
...
@@ -172,6 +172,8 @@ typeattribute $1 appdomain;
tmpfs_domain($1)
tmpfs_domain($1)
# Map with PROT_EXEC.
# Map with PROT_EXEC.
allow $1 $1_tmpfs:file execute;
allow $1 $1_tmpfs:file execute;
neverallow { $1 -shell } { domain -$1 }:file no_rw_file_perms;
neverallow { appdomain -shell -$1 } $1:file no_rw_file_perms;
')
')
#####################################
#####################################
...
...
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