| 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 <dirent.h> | 5 #include <dirent.h> |
| 2 #include <map> | 6 #include <map> |
| 3 | 7 |
| 4 #include "debug.h" | 8 #include "debug.h" |
| 5 #include "sandbox_impl.h" | 9 #include "sandbox_impl.h" |
| 6 #include "syscall_table.h" | 10 #include "syscall_table.h" |
| 7 | 11 |
| 8 namespace playground { | 12 namespace playground { |
| 9 | 13 |
| 10 struct Thread { | 14 struct Thread { |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 246 |
| 243 // We are still in the untrusted code. Deny access to restricted resources. | 247 // We are still in the untrusted code. Deny access to restricted resources. |
| 244 mprotect(secureArena, 8192*kMaxThreads, PROT_NONE); | 248 mprotect(secureArena, 8192*kMaxThreads, PROT_NONE); |
| 245 mprotect(&syscall_mutex_, 4096, PROT_NONE); | 249 mprotect(&syscall_mutex_, 4096, PROT_NONE); |
| 246 close(sandboxFd); | 250 close(sandboxFd); |
| 247 | 251 |
| 248 return secureArena; | 252 return secureArena; |
| 249 } | 253 } |
| 250 | 254 |
| 251 } // namespace | 255 } // namespace |
| OLD | NEW |