| Index: sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
|
| diff --git a/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc b/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
|
| index 06ba2090c915a4ba2429406943da893ec906d76f..99f4ccdc6e728a881e55c2e42d61180d57ea6fd2 100644
|
| --- a/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
|
| +++ b/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
|
| @@ -13,6 +13,7 @@
|
| #include <sys/types.h>
|
| #include <sys/utsname.h>
|
| #include <unistd.h>
|
| +#include <sys/socket.h>
|
|
|
| #if defined(ANDROID)
|
| // Work-around for buggy headers in Android's NDK
|
| @@ -653,7 +654,7 @@ BPF_TEST_C(SandboxBPF, SigBus, RedirectAllSyscallsPolicy) {
|
| // more complex uses of signals where our use of the SIGBUS mask is not
|
| // 100% transparent. This is expected behavior.
|
| int fds[2];
|
| - BPF_ASSERT(pipe(fds) == 0);
|
| + BPF_ASSERT(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0);
|
| bus_handler_fd_ = fds[1];
|
| struct sigaction sa = {};
|
| sa.sa_sigaction = SigBusHandler;
|
| @@ -1981,6 +1982,13 @@ SANDBOX_TEST(SandboxBPF, DISABLE_ON_TSAN(SeccompRetTrace)) {
|
| return;
|
| #endif
|
|
|
| +#if defined(__mips__)
|
| + // TODO: Figure out how to support specificity of handeling indirect syscalls
|
| + // in this test and enable it.
|
| + printf("This test is currently disabled on MIPS.");
|
| + return;
|
| +#endif
|
| +
|
| pid_t pid = fork();
|
| BPF_ASSERT_NE(-1, pid);
|
| if (pid == 0) {
|
|
|