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 | 5a3617aab68f3ac4250798585d13151b0cef7bd9 (patch) | |
| tree | 575d6a745984a74b387b2b22f5e13a405a15db0a /libutils/ProcessCallStack.cpp | |
| parent | 27c5a27fa79793dff7d32ac8d93673ef36a835ef (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
