diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-08 13:40:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-08 13:40:26 -0400 |
commit | d792d2a14ddb7d2ff62dea8ed7d15416b1254348 (patch) | |
tree | a62e5fc1b62c0b71edba8a5b264fdfe2ceb52a51 | |
parent | f5876917aaa5a79577ec27fd8302f75085b41e8e (diff) | |
parent | 0df22e8f5f5c4e1a329f2930f6eb9ecde1cf9848 (diff) | |
download | tor-d792d2a14ddb7d2ff62dea8ed7d15416b1254348.tar.gz tor-d792d2a14ddb7d2ff62dea8ed7d15416b1254348.zip |
Merge branch 'maint-0.2.9' into maint-0.3.0
-rw-r--r-- | changes/bug21943 | 6 | ||||
-rw-r--r-- | src/common/sandbox.c | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/changes/bug21943 b/changes/bug21943 new file mode 100644 index 0000000000..dbe2c726d9 --- /dev/null +++ b/changes/bug21943 @@ -0,0 +1,6 @@ + o Minor bugfixes (Linux seccomp2 sandbox): + - The getpid() system call is now permitted under the Linux seccomp2 + sandbox, to avoid crashing with versions of OpenSSL (and other + libraries) that attempt to learn the process's PID by using the + syscall rather than the VDSO code. Fixes bug 21943; bugfix on + 0.2.5.1-alpha. diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 8e72ebf137..9c0b7950bd 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -155,6 +155,7 @@ static int filter_nopar_gen[] = { #ifdef __NR_getgid32 SCMP_SYS(getgid32), #endif + SCMP_SYS(getpid), #ifdef __NR_getrlimit SCMP_SYS(getrlimit), #endif |