From 73f6e44c8bffc9c431c3277dd5f2100f029369f0 Mon Sep 17 00:00:00 2001 From: Paul Lawrence Date: Fri, 27 Jan 2017 08:24:40 -0800 Subject: [PATCH] Allow __NR_perf_event_open Bug: 34732712 Test: strace simpleperf32 record -g runs Change-Id: Id2ffd1e808587bf809a7ff0303163816a0e8fbce --- init/seccomp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init/seccomp.cpp b/init/seccomp.cpp index a90a13790..92f30e858 100644 --- a/init/seccomp.cpp +++ b/init/seccomp.cpp @@ -216,6 +216,9 @@ bool set_seccomp_filter() { // Needed for debugging 32-bit Chrome AllowSyscall(f, 42); // __NR_pipe + // b/34732712 + AllowSyscall(f, 364); // __NR_perf_event_open + // arm32-on-arm64 only filter - autogenerated from bionic syscall usage for (size_t i = 0; i < arm_filter_size; ++i) f.push_back(arm_filter[i]);