From a056ffabbbdc76598830331c6550740a24fadeb8 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 27 May 2014 19:28:12 -0400 Subject: [PATCH] sandbox: permit listen(2) Fix for 12115; bugfix on 0.2.5.1-alpha --- changes/bug12115 | 3 +++ src/common/sandbox.c | 1 + 2 files changed, 4 insertions(+) create mode 100644 changes/bug12115 diff --git a/changes/bug12115 b/changes/bug12115 new file mode 100644 index 0000000000..7b846492f4 --- /dev/null +++ b/changes/bug12115 @@ -0,0 +1,3 @@ + o Minor bugfixes (linux seccomp sandbox): + - Avoid crashing when re-opening listener ports with the seccomp + sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha. diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 7586c0cb38..ba1956b144 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -186,6 +186,7 @@ static int filter_nopar_gen[] = { // socket syscalls SCMP_SYS(bind), + SCMP_SYS(listen), SCMP_SYS(connect), SCMP_SYS(getsockname), SCMP_SYS(recvmsg), -- 2.47.3