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

Side by Side Diff: sandbox/linux/seccomp-bpf/die.h

Issue 11411254: SECCOMP-BPF: Added supported for inspection system call arguments from BPF filters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments and fixed death tests Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_DIE_H__
6 #define SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ 6 #define SANDBOX_LINUX_SECCOMP_BPF_DIE_H__
7 7
8
jln (very slow on Chromium) 2012/12/14 02:28:02 This line always wants to come back for some reaso
8 namespace playground2 { 9 namespace playground2 {
9 10
10 class Die { 11 class Die {
11 public: 12 public:
12 // This is the main API for using this file. Prints a error message and 13 // This is the main API for using this file. Prints a error message and
13 // exits with a fatal error. 14 // exits with a fatal error.
14 #define SANDBOX_DIE(m) Die::SandboxDie(m, __FILE__, __LINE__) 15 #define SANDBOX_DIE(m) Die::SandboxDie(m, __FILE__, __LINE__)
15 16
16 // Adds an informational message to the log file or stderr as appropriate. 17 // Adds an informational message to the log file or stderr as appropriate.
17 #define SANDBOX_INFO(m) Die::SandboxInfo(m, __FILE__, __LINE__) 18 #define SANDBOX_INFO(m) Die::SandboxInfo(m, __FILE__, __LINE__)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 private: 51 private:
51 static bool simple_exit_; 52 static bool simple_exit_;
52 static bool suppress_info_; 53 static bool suppress_info_;
53 54
54 DISALLOW_IMPLICIT_CONSTRUCTORS(Die); 55 DISALLOW_IMPLICIT_CONSTRUCTORS(Die);
55 }; 56 };
56 57
57 } // namespace 58 } // namespace
58 59
59 #endif // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__ 60 #endif // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698