| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h" | 5 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_test_runner.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <linux/filter.h> | |
| 9 | 8 |
| 10 #include "base/logging.h" | 9 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 12 #include "sandbox/linux/bpf_dsl/policy.h" | 11 #include "sandbox/linux/bpf_dsl/policy.h" |
| 13 #include "sandbox/linux/seccomp-bpf/die.h" | 12 #include "sandbox/linux/seccomp-bpf/die.h" |
| 14 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" | 13 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" |
| 15 #include "sandbox/linux/tests/unit_tests.h" | 14 #include "sandbox/linux/tests/unit_tests.h" |
| 16 | 15 |
| 17 namespace sandbox { | 16 namespace sandbox { |
| 18 | 17 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 55 } |
| 57 } | 56 } |
| 58 | 57 |
| 59 bool SandboxBPFTestRunner::ShouldCheckForLeaks() const { | 58 bool SandboxBPFTestRunner::ShouldCheckForLeaks() const { |
| 60 // LSAN requires being able to use ptrace() and other system calls that could | 59 // LSAN requires being able to use ptrace() and other system calls that could |
| 61 // be denied. | 60 // be denied. |
| 62 return false; | 61 return false; |
| 63 } | 62 } |
| 64 | 63 |
| 65 } // namespace sandbox | 64 } // namespace sandbox |
| OLD | NEW |