diff options
author | Mark Salyzyn <salyzyn@google.com> | 2016-02-02 08:21:32 -0800 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2016-02-03 13:05:22 -0800 |
commit | 1186f3a5ad6581fae6e284fef4bfcefe50462cda (patch) | |
tree | 575d6a745984a74b387b2b22f5e13a405a15db0a /libutils/ProcessCallStack.cpp | |
parent | e54ea1c12d7d793dceff2f8afdb9bf6461462d92 (diff) |
libcutils: ashmem check fd validity
- collect st_rdev on open, or when required, for /dev/ashmem.
- check in all cases if fd is a character device and matches rdev.
- requires that we have open, read and write access to /dev/ashmem
to check, assumption being that if we can not, then we have no
right playing with the associated misdirected file descriptor.
NB: ashmem libcutil library entry points can no longer be called in
signal context.
Bug: 26871259
Change-Id: I9a17e33317a9be795131473a51c16f761b5f7407
Diffstat (limited to 'libutils/ProcessCallStack.cpp')
0 files changed, 0 insertions, 0 deletions