Merge "neverallow PROT_EXEC stack or heap."

This commit is contained in:
Daniel Cashman 2015-06-25 21:17:14 +00:00 committed by Gerrit Code Review
commit 33edd308bd

View file

@ -414,6 +414,11 @@ neverallow domain {
-asec_public_file -asec_public_file
}:file execmod; }:file execmod;
# Do not allow making the stack or heap executable.
# We would also like to minimize execmem but it seems to be
# required by some device-specific service domains.
neverallow domain self:process { execstack execheap };
# TODO: prohibit non-zygote spawned processes from using shared libraries # TODO: prohibit non-zygote spawned processes from using shared libraries
# with text relocations. b/20013628 . # with text relocations. b/20013628 .
# neverallow { domain -appdomain } file_type:file execmod; # neverallow { domain -appdomain } file_type:file execmod;