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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/linux/seccomp/syscall.cc ('k') | sandbox/linux/seccomp/syscall_table.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp/syscall_table.h
===================================================================
--- sandbox/linux/seccomp/syscall_table.h (revision 57969)
+++ sandbox/linux/seccomp/syscall_table.h (working copy)
@@ -1,43 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYSCALL_TABLE_H__
-#define SYSCALL_TABLE_H__
-
-#include <sys/types.h>
-
-#ifdef __cplusplus
-#include "securemem.h"
-extern "C" {
-namespace playground {
-#define SecureMemArgs SecureMem::Args
-#else
-#define SecureMemArgs void
-#define bool int
-#endif
- #define UNRESTRICTED_SYSCALL ((void *)1)
-
- struct SyscallTable {
- void *handler;
- bool (*trustedProcess)(int parentMapsFd, int sandboxFd, int threadFdPub,
- int threadFd, SecureMemArgs* mem);
- };
- extern const struct SyscallTable syscallTable[]
- asm("playground$syscallTable")
-#if defined(__x86_64__)
- __attribute__((visibility("internal")))
-#endif
- ;
- extern const unsigned maxSyscall
- asm("playground$maxSyscall")
-#if defined(__x86_64__)
- __attribute__((visibility("internal")))
-#endif
- ;
-#ifdef __cplusplus
-} // namespace
-}
-#endif
-
-#endif // SYSCALL_TABLE_H__
« 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