| 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 #ifndef SANDBOX_IMPL_H__ | 5 #ifndef SANDBOX_IMPL_H__ |
| 2 #define SANDBOX_IMPL_H__ | 6 #define SANDBOX_IMPL_H__ |
| 3 | 7 |
| 4 #include <asm/ldt.h> | 8 #include <asm/ldt.h> |
| 5 #include <errno.h> | 9 #include <errno.h> |
| 6 #include <fcntl.h> | 10 #include <fcntl.h> |
| 7 #include <limits.h> | 11 #include <limits.h> |
| 8 #include <linux/prctl.h> | 12 #include <linux/prctl.h> |
| 9 #include <linux/unistd.h> | 13 #include <linux/unistd.h> |
| 10 #include <netinet/in.h> | 14 #include <netinet/in.h> |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 void* fake_ret; | 357 void* fake_ret; |
| 354 } regs64 __attribute__((packed)); | 358 } regs64 __attribute__((packed)); |
| 355 #elif defined(__i386__) | 359 #elif defined(__i386__) |
| 356 struct { | 360 struct { |
| 357 void* ebp; | 361 void* ebp; |
| 358 void* edi; | 362 void* edi; |
| 359 void* esi; | 363 void* esi; |
| 360 void* edx; | 364 void* edx; |
| 361 void* ecx; | 365 void* ecx; |
| 362 void* ebx; | 366 void* ebx; |
| 363 void* ret2; | |
| 364 } regs32 __attribute__((packed)); | 367 } regs32 __attribute__((packed)); |
| 365 #else | 368 #else |
| 366 #error Unsupported target platform | 369 #error Unsupported target platform |
| 367 #endif | 370 #endif |
| 368 void* ret; | 371 void* ret; |
| 369 } __attribute__((packed)); | 372 } __attribute__((packed)); |
| 370 | 373 |
| 371 struct Connect { | 374 struct Connect { |
| 372 int sockfd; | 375 int sockfd; |
| 373 void* addr; | 376 void* addr; |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 static ProtectedMap protectedMap_; | 656 static ProtectedMap protectedMap_; |
| 654 static std::vector<SecureMem::Args*> secureMemPool_; | 657 static std::vector<SecureMem::Args*> secureMemPool_; |
| 655 }; | 658 }; |
| 656 | 659 |
| 657 } // namespace | 660 } // namespace |
| 658 | 661 |
| 659 using playground::Sandbox; | 662 using playground::Sandbox; |
| 660 #endif // __cplusplus | 663 #endif // __cplusplus |
| 661 | 664 |
| 662 #endif // SANDBOX_IMPL_H__ | 665 #endif // SANDBOX_IMPL_H__ |
| OLD | NEW |