From d76e46df58ad7a879fa581b89819aaebf2f8c4b3 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Tue, 29 Nov 2016 14:56:41 -0800 Subject: Do not allow jemalloc to use syscall. Test: Built angler and verified the jemalloc syscalls are gone. Test: Ran bionic unit tests and jemalloc unit tests on angler. Change-Id: I55d12bdfc84832d031e875244c20cc63820c0c5c --- include/jemalloc/internal/jemalloc_internal_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/jemalloc/internal/jemalloc_internal_defs.h b/include/jemalloc/internal/jemalloc_internal_defs.h index 7512644..2c1d8be 100644 --- a/include/jemalloc/internal/jemalloc_internal_defs.h +++ b/include/jemalloc/internal/jemalloc_internal_defs.h @@ -77,7 +77,8 @@ /* #undef JEMALLOC_OSSPIN */ /* Defined if syscall(2) is available. */ -#define JEMALLOC_HAVE_SYSCALL +/* Syscalls are available in Android, but avoid them for security reasons. */ +/* #undef JEMALLOC_HAVE_SYSCALL */ /* * Defined if secure_getenv(3) is available. -- cgit v1.2.3