Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: mojo/runner/host/linux_sandbox.cc

Issue 1491463002: build CrOS chrome with gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « content/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698