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/mac/bootstrap_sandbox.h" | 5 #include "sandbox/mac/bootstrap_sandbox.h" |
6 | 6 |
7 #include <servers/bootstrap.h> | 7 #include <servers/bootstrap.h> |
8 #include <stdint.h> | |
9 #include <unistd.h> | 8 #include <unistd.h> |
10 | 9 |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/mac/foundation_util.h" | 11 #include "base/mac/foundation_util.h" |
13 #include "base/mac/mach_logging.h" | 12 #include "base/mac/mach_logging.h" |
14 #include "base/macros.h" | |
15 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
16 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
17 #include "sandbox/mac/launchd_interception_server.h" | 15 #include "sandbox/mac/launchd_interception_server.h" |
18 #include "sandbox/mac/pre_exec_delegate.h" | 16 #include "sandbox/mac/pre_exec_delegate.h" |
19 | 17 |
20 namespace sandbox { | 18 namespace sandbox { |
21 | 19 |
22 namespace { | 20 namespace { |
23 | 21 |
24 struct SandboxCheckInRequest { | 22 struct SandboxCheckInRequest { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 } else { | 250 } else { |
253 { | 251 { |
254 base::AutoLock lock(lock_); | 252 base::AutoLock lock(lock_); |
255 sandboxed_processes_.erase(client_pid); | 253 sandboxed_processes_.erase(client_pid); |
256 } | 254 } |
257 MACH_LOG(ERROR, kr) << "HandleChildCheckIn mach_msg MACH_SEND_MSG"; | 255 MACH_LOG(ERROR, kr) << "HandleChildCheckIn mach_msg MACH_SEND_MSG"; |
258 } | 256 } |
259 } | 257 } |
260 | 258 |
261 } // namespace sandbox | 259 } // namespace sandbox |
OLD | NEW |