diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2019-07-25 22:10:56 +0000 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2019-07-25 22:10:56 +0000 |
commit | 214bcf1296cc2d1b81c45e1c0b938be8174fc7dd (patch) | |
tree | 990201cd613f168aec601b10ed0554b6fc9e51b0 /cmake | |
parent | b458bd2b6374d47ea132a075f672c2997c64620e (diff) | |
download | compiler-rt-214bcf1296cc2d1b81c45e1c0b938be8174fc7dd.tar.gz |
[profile] In Android, do not mkdir() dirs in GCOV_PREFIX
Summary:
In Android, attempting to mkdir() or even stat() top-level directories
like /data causes noisy selinux denials. During whole-system coverage
instrumentation, this causes a deluge of noisy messages that drown out
legitimate selinux denials, that should be audited and fixed.
To avoid this, skip creating any directory in GCOV_PREFIX (thereby
assuming that it exists).
- Android platform ensures that the GCOV_PREFIX used in Android is
created and read/writable by all processes.
- This only affects the Android platform (by checking against
__ANDROID_API_FUTURE__) and for apps built with Clang coverage, the
runtime will still create any non-existent parent directories for the
coverage files.
Reviewers: srhines, davidxl
Subscribers: krytarowski, #sanitizers, danalbert, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D65245
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@367064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions