| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 1 #include "debug.h" | 5 #include "debug.h" |
| 2 #include "sandbox_impl.h" | 6 #include "sandbox_impl.h" |
| 3 | 7 |
| 4 namespace playground { | 8 namespace playground { |
| 5 | 9 |
| 6 int Sandbox::sandbox_exit(int status) { | 10 int Sandbox::sandbox_exit(int status) { |
| 7 Debug::syscall(__NR_exit, "Executing handler"); | 11 Debug::syscall(__NR_exit, "Executing handler"); |
| 8 struct { | 12 struct { |
| 9 int sysnum; | 13 int sysnum; |
| 10 long long cookie; | 14 long long cookie; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 28 |
| 25 bool Sandbox::process_exit(int parentMapsFd, int sandboxFd, int threadFdPub, | 29 bool Sandbox::process_exit(int parentMapsFd, int sandboxFd, int threadFdPub, |
| 26 int threadFd, SecureMem::Args* mem) { | 30 int threadFd, SecureMem::Args* mem) { |
| 27 SecureMem::lockSystemCall(parentMapsFd, mem); | 31 SecureMem::lockSystemCall(parentMapsFd, mem); |
| 28 SecureMem::sendSystemCall(threadFdPub, true, parentMapsFd, mem, | 32 SecureMem::sendSystemCall(threadFdPub, true, parentMapsFd, mem, |
| 29 __NR_exit, 0); | 33 __NR_exit, 0); |
| 30 return true; | 34 return true; |
| 31 } | 35 } |
| 32 | 36 |
| 33 } // namespace | 37 } // namespace |
| OLD | NEW |