commit 5c3639923fb3d7a1bfc7b38248001e67333fa35e
parent ce8e7427b9284ef12b69d50d72c8fc315b90e36d
Author: Nick Mathewson <nickm@torproject.org>
Date: Mon, 23 Apr 2018 09:23:31 -0400
Merge branch 'maint-0.2.9' into maint-0.3.1
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/changes/bug24969 b/changes/bug24969
@@ -0,0 +1,3 @@
+ o Minor bugfixes (Linux seccomp2 sandbox):
+ - Allow the nanosleep() system call, which glibc uses to implement
+ sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
@@ -191,6 +191,9 @@ static int filter_nopar_gen[] = {
SCMP_SYS(mmap),
#endif
SCMP_SYS(munmap),
+#ifdef __NR_nanosleep
+ SCMP_SYS(nanosleep),
+#endif
#ifdef __NR_prlimit
SCMP_SYS(prlimit),
#endif