Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <asm/unistd.h> | 5 #include <asm/unistd.h> |
| 6 #include <dlfcn.h> | 6 #include <dlfcn.h> |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <linux/audit.h> | |
| 10 #include <linux/filter.h> | 9 #include <linux/filter.h> |
|
jln (very slow on Chromium)
2013/08/26 19:02:39
I don't think we'd need this one either?
Mostyn Bramley-Moore
2013/08/26 19:14:04
Done.
| |
| 11 #include <linux/net.h> | 10 #include <linux/net.h> |
| 12 #include <signal.h> | 11 #include <signal.h> |
| 13 #include <string.h> | 12 #include <string.h> |
| 14 #include <sys/ioctl.h> | 13 #include <sys/ioctl.h> |
| 15 #include <sys/mman.h> | 14 #include <sys/mman.h> |
| 16 #include <sys/prctl.h> | 15 #include <sys/prctl.h> |
| 17 #include <sys/socket.h> | 16 #include <sys/socket.h> |
| 18 #include <sys/stat.h> | 17 #include <sys/stat.h> |
| 19 #include <sys/types.h> | 18 #include <sys/types.h> |
| 20 #include <ucontext.h> | 19 #include <ucontext.h> |
| (...skipping 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2076 return false; | 2075 return false; |
| 2077 } | 2076 } |
| 2078 | 2077 |
| 2079 #if defined(SECCOMP_BPF_SANDBOX) | 2078 #if defined(SECCOMP_BPF_SANDBOX) |
| 2080 playground2::BpfSandboxPolicyCallback SandboxSeccompBpf::GetBaselinePolicy() { | 2079 playground2::BpfSandboxPolicyCallback SandboxSeccompBpf::GetBaselinePolicy() { |
| 2081 return base::Bind(&BaselinePolicyWithAux); | 2080 return base::Bind(&BaselinePolicyWithAux); |
| 2082 } | 2081 } |
| 2083 #endif // defined(SECCOMP_BPF_SANDBOX) | 2082 #endif // defined(SECCOMP_BPF_SANDBOX) |
| 2084 | 2083 |
| 2085 } // namespace content | 2084 } // namespace content |
| OLD | NEW |