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

Unified Diff: content/common/sandbox_seccomp_bpf_linux.cc

Issue 13529027: Switch Linux Auru ports over to POSIX SHM instead of legacy SYSV SHM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | « content/browser/renderer_host/render_widget_helper.cc ('k') | content/common/view_messages.h » ('j') | 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 192603)
+++ content/common/sandbox_seccomp_bpf_linux.cc (working copy)
@@ -1386,7 +1386,7 @@
case __NR_prlimit64:
return ErrorCode(EPERM); // See crbug.com/160157.
default:
- // These need further tightening.
+#if defined(TOOLKIT_GTK)
jln (very slow on Chromium) 2013/04/06 00:22:23 Please, make an IfUsingToolKitGtk() function above
#if defined(__x86_64__) || defined(__arm__)
if (IsSystemVSharedMemory(sysno))
return ErrorCode(ErrorCode::ERR_ALLOWED);
@@ -1395,6 +1395,7 @@
if (IsSystemVIpc(sysno))
return ErrorCode(ErrorCode::ERR_ALLOWED);
#endif
+#endif
// Default on the baseline policy.
return BaselinePolicy(sandbox, sysno);
@@ -1414,7 +1415,7 @@
case __NR_ioctl:
return ErrorCode(ENOTTY); // Flash Access.
default:
- // These need further tightening.
+#if defined(TOOLKIT_GTK)
jln (very slow on Chromium) 2013/04/06 00:22:23 Same remark here.
#if defined(__x86_64__) || defined(__arm__)
if (IsSystemVSharedMemory(sysno))
return ErrorCode(ErrorCode::ERR_ALLOWED);
@@ -1423,6 +1424,7 @@
if (IsSystemVIpc(sysno))
return ErrorCode(ErrorCode::ERR_ALLOWED);
#endif
+#endif
// Default on the baseline policy.
return BaselinePolicy(sandbox, sysno);
« no previous file with comments | « content/browser/renderer_host/render_widget_helper.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698