Chromium Code Reviews| 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..2447830de606e0a0f2c373f0ed584c66f9b4542b 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()) |
|
dshwang
2016/03/29 13:23:40
is it ok to build chromium on ubuntu?
dshwang
2016/03/29 13:53:10
1. need #ifdef
2. s/DMA_BUF_IOCTL_SYNC)/DMA_BUF_IO
vignatti (out of this project)
2016/03/29 21:08:30
2 is done.
|
| .Default(sandbox::CrashSIGSYSIoctl()); |
| } |