Merge "neverallow PROT_EXEC stack or heap."
This commit is contained in:
commit
33edd308bd
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue