[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/maint-0.3.3] Permit the nanosleep system call in the seccomp2 callbox
commit c4be6dfeabc8d42ecb6ccea8ca44d1ff0835071a
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed Apr 18 10:25:42 2018 -0400
Permit the nanosleep system call in the seccomp2 callbox
Fixes bug 24969; bugfix on 0.2.5.1-alpha when the sandbox was introduced.
---
changes/bug24969 | 3 +++
src/common/sandbox.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/changes/bug24969 b/changes/bug24969
new file mode 100644
index 000000000..46b2bae6f
--- /dev/null
+++ 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
index 87fe08e88..3d27ea66b 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -185,6 +185,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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits