OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "services/shell/runner/host/linux_sandbox.h" | 5 #include "services/service_manager/runner/host/linux_sandbox.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <sys/syscall.h> | 8 #include <sys/syscall.h> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/debug/leak_annotations.h" | 12 #include "base/debug/leak_annotations.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/posix/eintr_wrapper.h" | 14 #include "base/posix/eintr_wrapper.h" |
15 #include "base/rand_util.h" | 15 #include "base/rand_util.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 sandbox::syscall_broker::BrokerProcess* leaked_broker = broker_.release(); | 160 sandbox::syscall_broker::BrokerProcess* leaked_broker = broker_.release(); |
161 ALLOW_UNUSED_LOCAL(leaked_broker); | 161 ALLOW_UNUSED_LOCAL(leaked_broker); |
162 ANNOTATE_LEAKING_OBJECT_PTR(leaked_broker); | 162 ANNOTATE_LEAKING_OBJECT_PTR(leaked_broker); |
163 } | 163 } |
164 | 164 |
165 void LinuxSandbox::Seal() { | 165 void LinuxSandbox::Seal() { |
166 proc_fd_.reset(); | 166 proc_fd_.reset(); |
167 } | 167 } |
168 | 168 |
169 } // namespace shell | 169 } // namespace shell |
OLD | NEW |