commit | ddd87af881ef31976af3d051503fcb00040f4f9a | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Wed Jul 11 09:16:23 2018 -0700 |
committer | Ivan Lozano <ivanlozano@google.com> | Fri Jul 13 10:18:43 2018 -0700 |
tree | 8eb2372815a67f73c9db2eae765afcd292b2a133 | |
parent | 87a837c62a1bd1be9143aee3660bb171424a08a5 [diff] [blame] |
Add syscalls required by UBSan. UBSan diagnostic mode uses the open and readlink syscalls in the execution path that writes diagnostics messages to logcat. Bug: 110791537 Test: media.codec no longer crashing when logging UBSan messages Change-Id: Ia33bb59c21c65b1019d0d7fc9eaff7b35484fc63
diff --git a/services/mediacodec/seccomp_policy/mediacodec-arm.policy b/services/mediacodec/seccomp_policy/mediacodec-arm.policy index 6ec8895..edf4dab 100644 --- a/services/mediacodec/seccomp_policy/mediacodec-arm.policy +++ b/services/mediacodec/seccomp_policy/mediacodec-arm.policy
@@ -55,4 +55,8 @@ getdents64: 1 getrandom: 1 +# Used by UBSan diagnostic messages +readlink: 1 +open: 1 + @include /system/etc/seccomp_policy/crash_dump.arm.policy