Index: mojo/runner/host/linux_sandbox.cc |
diff --git a/mojo/runner/host/linux_sandbox.cc b/mojo/runner/host/linux_sandbox.cc |
index a8dcb8b0bb72609a1bcb2d4de568f0be53907f61..c9d1323a54caf9a46d4b9cda1936126eb1c1998b 100644 |
--- a/mojo/runner/host/linux_sandbox.cc |
+++ b/mojo/runner/host/linux_sandbox.cc |
@@ -84,11 +84,14 @@ class SandboxPolicy : public sandbox::BaselinePolicy { |
case __NR_sched_getaffinity: |
return sandbox::RestrictSchedTarget(policy_pid(), sysno); |
case __NR_ftruncate: |
-#if defined(__NR_getrlimit) |
- // __NR_getrlimit does not exist on all systems (e.g. in the arm/linux |
- // build). |
+#if defined(__i386__) || defined(__x86_64__) || defined(__mips__) |
+ // Per #ifdefs in |
+ // content/common/sandbox_linux/bpf_renderer_policy_linux.cc |
case __NR_getrlimit: |
#endif |
+#if defined(__i386__) || defined(__arm__) |
+ case __NR_ugetrlimit: |
+#endif |
case __NR_uname: |
case __NR_getsockopt: |
case __NR_setsockopt: |