From 483069ce513e778afec444c0ff162eec5a024269 Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 3 Mar 2017 16:18:21 +0000 Subject: [PATCH] allow ftruncate allow mremap for glibc, too --- tinyldap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tinyldap.c b/tinyldap.c index 99834ca..fc27577 100644 --- a/tinyldap.c +++ b/tinyldap.c @@ -2471,14 +2471,19 @@ static int install_syscall_filter(void) { ALLOW_SYSCALL(poll), #endif +#ifdef __NR__ftruncate64 + ALLOW_SYSCALL(ftruncate64), +#endif + ALLOW_SYSCALL(ftruncate), + /* for malloc / calloc */ #ifdef __dietlibc__ ALLOW_SYSCALL(mmap), - ALLOW_SYSCALL(mremap), #else ALLOW_SYSCALL(brk), ALLOW_SYSCALL(mmap), #endif + ALLOW_SYSCALL(mremap), #ifdef __NR_socketcall ALLOW_SYSCALL(socketcall),