| Index: components/nacl/loader/nonsfi/nonsfi_sandbox.cc
|
| ===================================================================
|
| --- components/nacl/loader/nonsfi/nonsfi_sandbox.cc (revision 266217)
|
| +++ components/nacl/loader/nonsfi/nonsfi_sandbox.cc (working copy)
|
| @@ -132,6 +132,7 @@
|
| RestrictMemoryProtection(sb, 2));
|
| }
|
|
|
| +#if defined(__x86_64__) || defined(__arm__)
|
| ErrorCode RestrictSocketpair(SandboxBPF* sb) {
|
| // Only allow AF_UNIX, PF_UNIX. Crash if anything else is seen.
|
| COMPILE_ASSERT(AF_UNIX == PF_UNIX, af_unix_pf_unix_different);
|
| @@ -140,6 +141,7 @@
|
| ErrorCode(ErrorCode::ERR_ALLOWED),
|
| sb->Trap(sandbox::CrashSIGSYS_Handler, NULL));
|
| }
|
| +#endif
|
|
|
| bool IsGracefullyDenied(int sysno) {
|
| switch (sysno) {
|
|
|