From: Nick Mathewson Date: Tue, 27 May 2014 23:28:12 +0000 (-0400) Subject: sandbox: permit listen(2) X-Git-Tag: tor-0.2.5.5-alpha~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a056ffabbbdc76598830331c6550740a24fadeb8;p=thirdparty%2Ftor.git sandbox: permit listen(2) Fix for 12115; bugfix on 0.2.5.1-alpha --- 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),