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

Unified Diff: sandbox/linux/seccomp_bpf/util.h

Issue 10458040: Initial snapshot of the new BPF-enabled seccomp sandbox. This code is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: sandbox/linux/seccomp_bpf/util.h
===================================================================
--- sandbox/linux/seccomp_bpf/util.h (revision 0)
+++ sandbox/linux/seccomp_bpf/util.h (revision 0)
@@ -0,0 +1,19 @@
+// Copyright (c) 2012 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 UTIL_H__
+#define UTIL_H__
+
+namespace playground2 {
+
+class Util {
+ public:
+ static bool sendFds(int transport, const void *buf, size_t len, ...);
+ static bool getFds(int transport, void *buf, size_t *len, ...);
+ static void closeAllBut(int fd, ...);
+};
+
+} // namespace
+
+#endif // UTIL_H__
Property changes on: sandbox/linux/seccomp_bpf/util.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698