| 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 0341d2f95db055f0eba10bb68de5e172d5f92b54..fe2a0fd4bc758031a39179e1c2394daa7cd56cc0 100644
|
| --- a/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
|
| +++ b/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
|
| @@ -11,6 +11,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
|
| @@ -650,7 +651,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;
|
|
|