]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add the poll() syscall as permitted by the sandbox
authorNick Mathewson <nickm@torproject.org>
Tue, 20 Mar 2018 12:22:28 +0000 (08:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 20 Mar 2018 12:23:44 +0000 (08:23 -0400)
Apparently, sometimes getpwnam will call this.

Fixes bug 25513.

changes/feature25313 [new file with mode: 0644]
src/common/sandbox.c

diff --git a/changes/feature25313 b/changes/feature25313
new file mode 100644 (file)
index 0000000..90f4211
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features (sandbox):
+    - Explicitly permit the poll() system call when the Linux seccomp2-based
+      sandbox is enabled: apparently, some versions of libc use poll() when
+      calling getpwnam(). Closes ticket 25313.
index b90ae02578d5ffb5d6a180438688ec819fa5e732..c1b7bfe5e980097d6ebf76ee0719fa01f9b65f43 100644 (file)
@@ -247,7 +247,8 @@ static int filter_nopar_gen[] = {
     SCMP_SYS(recvmsg),
     SCMP_SYS(recvfrom),
     SCMP_SYS(sendto),
-    SCMP_SYS(unlink)
+    SCMP_SYS(unlink),
+    SCMP_SYS(poll)
 };
 
 /* These macros help avoid the error where the number of filters we add on a