summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2018-02-24 18:59:39 -0700
committerJeff Sharkey <jsharkey@android.com>2018-02-24 19:04:53 -0700
commit5359430a97127786e37ad8b8cda897064063c04e (patch)
tree6b7892efd685a2ced6a77efdc857a3e500e9a61f /opengl/tests/gl_basic/gl_basic.cpp
parent5058fa02a6bbb6b55fdaea54eae460618ff41252 (diff)
Sanity check paths coming into installd.
Since installd is an extremely privlidged execution domain, we should be as paranoid as possible about any incoming raw text input. To that effect, this change asserts that incoming paths are absolute and aren't trying to play any weird shenanigans. (This borrows the same logic used over in vold.) Also fix subtle bugs where AID_SYSTEM wasn't being checked, and the installd lock wasn't being acquired. (If a lock isn't needed, we always want a comment block explaining why.) Test: builds, boots, new apps install/uninstall fine Bug: 71871109 Change-Id: I8ad0aafa794b0ebb9e7cc4831004fc0022acd747
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions