Skip to content
Snippets Groups Projects
Commit 16873c10 authored by Stephen Smalley's avatar Stephen Smalley Committed by Nick Kralevich
Browse files

neverallow read to shell- and app-writable symlinks.


To reduce the likelihood of malicious symlink attacks, neverallow
read access to shell- and app-writable symlinks.

Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
(cherry picked from commit 9d439d3d)

Bug: 21924438
Change-Id: Icf1ccca71ef4395de8be8503359f76f89cc9e1a5
parent 64620270
No related branches found
No related tags found
No related merge requests found
...@@ -456,3 +456,20 @@ neverallow { ...@@ -456,3 +456,20 @@ neverallow {
-runas -runas
-zygote -zygote
} shell:process { transition dyntransition }; } shell:process { transition dyntransition };
# Minimize read access to shell- or app-writable symlinks.
# This is to prevent malicious symlink attacks.
neverallow {
domain
-appdomain
-installd
-uncrypt # TODO: see if we can remove
} app_data_file:lnk_file read;
neverallow {
domain
-shell
userdebug_or_eng(`-uncrypt')
-installd
-surfaceflinger # TODO: see if we can remove from mako sepolicy
} shell_data_file:lnk_file read;
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