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

Unified Diff: content/common/sandbox_seccomp_bpf_linux.cc

Issue 16019017: Allow ugetrlimit() whenever we allow getrlimit() as the calls are pretty (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_seccomp_bpf_linux.cc
===================================================================
--- content/common/sandbox_seccomp_bpf_linux.cc (revision 201429)
+++ content/common/sandbox_seccomp_bpf_linux.cc (working copy)
@@ -873,9 +873,7 @@
bool IsGlobalProcessEnvironment(int sysno) {
switch (sysno) {
case __NR_acct: // Privileged.
-#if defined(__i386__) || defined(__x86_64__)
jln (very slow on Chromium) 2013/05/29 03:36:40 There is no getrlimit on arm. I think this #ifdef
case __NR_getrlimit:
-#endif
#if defined(__i386__) || defined(__arm__)
case __NR_ugetrlimit:
#endif
@@ -1554,8 +1552,9 @@
case __NR_fdatasync:
case __NR_fsync:
case __NR_getpriority:
-#if defined(__i386__) || defined(__x86_64__)
jln (very slow on Chromium) 2013/05/29 03:36:40 Ditto.
case __NR_getrlimit:
+#if defined(__i386__) || defined(__arm__)
+ case __NR_ugetrlimit:
#endif
case __NR_mremap: // See crbug.com/149834.
case __NR_pread64:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698