From f6ffcab30da48e9d7cfa742fbcd46b752fe809b2 Mon Sep 17 00:00:00 2001 From: Jed Davis Date: Tue, 20 May 2014 18:38:06 -0700 Subject: [PATCH] Bug 920372 - Allow tgkill only for threads of the calling process itself. r=kang --- security/sandbox/linux/SandboxFilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp index e195d7b6409c..4f0da9cc5153 100644 --- a/security/sandbox/linux/SandboxFilter.cpp +++ b/security/sandbox/linux/SandboxFilter.cpp @@ -209,7 +209,7 @@ SandboxFilterImpl::Build() { // Used by profiler. Also used for raise(), which causes problems // with Android KitKat abort(); see bug 1004832. - Allow(SYSCALL(tgkill)); + Allow(SYSCALL_WITH_ARG(tgkill, 0, getpid())); /* B2G specific low-frequency syscalls */ #ifdef MOZ_WIDGET_GONK