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

Validate no-cross-domain /proc/PID access am: 7a463809 am: 881fe06f am:...

Validate no-cross-domain /proc/PID access am: 7a463809 am: 881fe06f am: 25d4a090 am: 457c08cc
am: 8d19f93b

Change-Id: I75a8f4ae8aba2857814aa04060ca4d22e3bcc6b8
parents bbdb46c4 8d19f93b
No related branches found
No related tags found
No related merge requests found
......@@ -402,8 +402,10 @@ neverallow appdomain zygote_socket:sock_file write;
# ptrace access to non-app domains.
neverallow appdomain { domain -appdomain }:process ptrace;
# Write access to /proc/pid entries for any non-app domain.
neverallow appdomain { domain -appdomain }:file write;
# Read or write access to /proc/pid entries for any non-app domain.
# 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.
# sigchld allowed for parent death notification.
......
......@@ -176,6 +176,8 @@ typeattribute $1 appdomain;
tmpfs_domain($1)
# Map with PROT_EXEC.
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.
Finish editing this message first!
Please register or to comment