[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.2.9] Add getpid() to the seccomp2 sandbox.



commit 99e943998dcfd1263301224104ef98596325f9f2
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Apr 26 12:56:06 2017 -0400

    Add getpid() to the seccomp2 sandbox.
    
    We hadn't needed this before, because most getpid() callers on Linux
    were looking at the vDSO version of getpid().  I don't know why at
    least one version of OpenSSL seems to be ignoring the vDSO, but this
    change should fix it.
    
    Fixes bug 21943; bugfix on 0.2.5.1-alpha when the sandbox was
    introduced.
---
 src/common/sandbox.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index ebc843e..95c9f83 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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits