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

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

Issue 3225010: Pull seccomp-sandbox in via DEPS rather than using an in-tree copy... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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/syscall.cc ('k') | sandbox/linux/seccomp/syscall_table.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
5 #ifndef SYSCALL_TABLE_H__
6 #define SYSCALL_TABLE_H__
7
8 #include <sys/types.h>
9
10 #ifdef __cplusplus
11 #include "securemem.h"
12 extern "C" {
13 namespace playground {
14 #define SecureMemArgs SecureMem::Args
15 #else
16 #define SecureMemArgs void
17 #define bool int
18 #endif
19 #define UNRESTRICTED_SYSCALL ((void *)1)
20
21 struct SyscallTable {
22 void *handler;
23 bool (*trustedProcess)(int parentMapsFd, int sandboxFd, int threadFdPub,
24 int threadFd, SecureMemArgs* mem);
25 };
26 extern const struct SyscallTable syscallTable[]
27 asm("playground$syscallTable")
28 #if defined(__x86_64__)
29 __attribute__((visibility("internal")))
30 #endif
31 ;
32 extern const unsigned maxSyscall
33 asm("playground$maxSyscall")
34 #if defined(__x86_64__)
35 __attribute__((visibility("internal")))
36 #endif
37 ;
38 #ifdef __cplusplus
39 } // namespace
40 }
41 #endif
42
43 #endif // SYSCALL_TABLE_H__
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp/syscall.cc ('k') | sandbox/linux/seccomp/syscall_table.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698