From 0dcb5222db1f215572630dca6b7a48e4ca61861e Mon Sep 17 00:00:00 2001 From: "milko.leporis" Date: Tue, 9 Feb 2016 04:07:24 -0800 Subject: [PATCH] [MIPS] Linux sandbox: Allow __NR_send for mips32 This change will fix "Aw, Snap!" in Chromium for Linux on mips32, which is caused by dissallowed __NR_send syscall: sigsys_handlers.cc:**CRASHING**:seccomp-bpf failure in syscall 4000 + 0178 TEST=Running Chromium on MIPS CI20 board with 3.18 kernel BUG=369594, 130022 Review URL: https://codereview.chromium.org/1666103002 Cr-Commit-Position: refs/heads/master@{#374357} --- AUTHORS | 1 + sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index b91daf7f0df7c7..9611735f870ae0 100644 --- a/AUTHORS +++ b/AUTHORS @@ -408,6 +408,7 @@ Mihai Tica Mihai Tica Mike Tilburg Mikhail Pozdnyakov +Milko Leporis Milton Chiang Mingmin Xie Minsoo Max Koo diff --git a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc index c217d47e2d65de..10278dc5fc9b22 100644 --- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc @@ -550,7 +550,7 @@ bool SyscallSets::IsAllowedGeneralIo(int sysno) { #if defined(__i386__) || defined(__arm__) || defined(__mips__) case __NR__newselect: #endif -#if defined(__arm__) +#if defined(__arm__) || defined(__mips__) case __NR_send: #endif #if defined(__x86_64__) || defined(__arm__) || defined(__mips__) || \