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

Unified Diff: content/common/sandbox_linux/bpf_renderer_policy_linux.cc

Issue 1841683003: ui/ozone: Flush CPU caches when mapping/unmapping prime pixmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use base::ScopedFD Created 4 years, 9 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
Index: content/common/sandbox_linux/bpf_renderer_policy_linux.cc
diff --git a/content/common/sandbox_linux/bpf_renderer_policy_linux.cc b/content/common/sandbox_linux/bpf_renderer_policy_linux.cc
index a3e74389425729b4762cb22e7d5acddd717a3281..7c5a62a883931b865e3b151d6f2d833dec1c12dd 100644
--- a/content/common/sandbox_linux/bpf_renderer_policy_linux.cc
+++ b/content/common/sandbox_linux/bpf_renderer_policy_linux.cc
@@ -5,6 +5,7 @@
#include "content/common/sandbox_linux/bpf_renderer_policy_linux.h"
#include <errno.h>
+#include <linux/dma-buf.h>
#include <sys/ioctl.h>
#include "build/build_config.h"
@@ -30,6 +31,8 @@ ResultExpr RestrictIoctl() {
return Switch(request)
.SANDBOX_BPF_DSL_CASES((static_cast<unsigned long>(TCGETS), FIONREAD),
Allow())
+ .SANDBOX_BPF_DSL_CASES((static_cast<unsigned long>(DMA_BUF_IOCTL_SYNC)),
+ Allow())
spang 2016/03/30 00:19:00 I'm fairly certain this is going to cause compile
vignatti (out of this project) 2016/03/30 14:58:37 yeah, I was thinking the same. Did you read what I
.Default(sandbox::CrashSIGSYSIoctl());
}

Powered by Google App Engine
This is Rietveld 408576698