summaryrefslogtreecommitdiff
path: root/code_coverage/seccomp_policy/code_coverage.policy.def
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2021-01-15 15:44:28 -0800
committerPirama Arumuga Nainar <pirama@google.com>2021-01-19 13:09:32 -0800
commitc6a51c4af50412f418534502fda39e63d0daffe5 (patch)
treec8134c7c2dd537af5b809443680f8e6a49fec9c4 /code_coverage/seccomp_policy/code_coverage.policy.def
parent2ec86f7582d25130ed9604d117a48b2d0e4c3156 (diff)
Allow fchmod syscalls on code-coverage builds
Bug: http://b/177693725 fchmod is used to ensure profraw files are readable by all users with Clang's profile merging. Test: ensure mediaswcodec doesn't crash in code coverage build. Change-Id: Ia1e3b5b51c1d2fc86d548cfd066e849b03004731
Diffstat (limited to 'code_coverage/seccomp_policy/code_coverage.policy.def')
-rw-r--r--code_coverage/seccomp_policy/code_coverage.policy.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/code_coverage/seccomp_policy/code_coverage.policy.def b/code_coverage/seccomp_policy/code_coverage.policy.def
index 599c4a4582..b6a4c6d2ca 100644
--- a/code_coverage/seccomp_policy/code_coverage.policy.def
+++ b/code_coverage/seccomp_policy/code_coverage.policy.def
@@ -13,6 +13,9 @@
// 2nd-Nth: uses mmap() to update in place
close: 1
+// fchmod allowed to set libprofile-clang-extras, which wraps `open` calls, to
+// set correct permission for coverage files.
+fchmod: 1
mkdirat: 1
msync: 1
munmap: 1