Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: sandbox/linux/seccomp/sandbox_impl.h

Issue 661438: Seccomp sandbox changes (performance and correctness fixes, primarily targetting x86-32) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/linux/seccomp/sandbox.cc ('k') | sandbox/linux/seccomp/securemem.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp/sandbox.cc ('k') | sandbox/linux/seccomp/securemem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698