Skip to content
Snippets Groups Projects
Commit 881fe06f authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Validate no-cross-domain /proc/PID access

am: 7a463809

Change-Id: Iba80938afccd21f0c3b69626223b35c672358e77
parents 508db351 7a463809
Branches
Tags
No related merge requests found
...@@ -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.
......
...@@ -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;
') ')
##################################### #####################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment