]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
seccomp2: Add "shutdown" to the list of permitted system calls.
authorNick Mathewson <nickm@torproject.org>
Mon, 12 Nov 2018 13:23:58 +0000 (08:23 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 12 Nov 2018 13:23:58 +0000 (08:23 -0500)
We don't use this syscall, but openssl apparently does.

(This syscall puts a socket into a half-closed state. Don't worry:
It doesn't shut down the system or anything.)

Fixes bug 28183; bugfix on 0.2.5.1-alpha where the sandbox was
introduced.

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

diff --git a/changes/bug28183 b/changes/bug28183
new file mode 100644 (file)
index 0000000..8d35dcd
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (Linux seccomp2 sandbox):
+    - Permit the "shutdown()" system call, which is apparently
+      used by OpenSSL under some circumstances. Fixes bug 28183;
+      bugfix on 0.2.5.1-alpha.
index 0a972d496b0702877aaeee04f22058aac6152906..3b21322d31bd1ab15bda50461940411bf9c17924 100644 (file)
@@ -205,6 +205,7 @@ static int filter_nopar_gen[] = {
 #ifdef __NR_setrlimit
     SCMP_SYS(setrlimit),
 #endif
+    SCMP_SYS(shutdown),
 #ifdef __NR_sigaltstack
     SCMP_SYS(sigaltstack),
 #endif
@@ -2013,4 +2014,3 @@ sandbox_disable_getaddrinfo_cache(void)
 {
 }
 #endif
-