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

Unified Diff: experimental/webtry/syscall_reporter.h

Issue 228693002: Initial code for webtry, a web application for allowing users to try out Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More cleanup Created 6 years, 8 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: experimental/webtry/syscall_reporter.h
diff --git a/experimental/webtry/syscall_reporter.h b/experimental/webtry/syscall_reporter.h
new file mode 100644
index 0000000000000000000000000000000000000000..0c0c447ff0676540a21b52028332c96305601a54
--- /dev/null
+++ b/experimental/webtry/syscall_reporter.h
@@ -0,0 +1,23 @@
+/*
+ * syscall reporting example for seccomp
+ *
+ * Copyright (c) 2012 The Chromium OS Authors <chromium-os-dev@chromium.org>
+ * Authors:
+ * Kees Cook <keescook@chromium.org>
+ * Will Drewry <wad@chromium.org>
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef _BPF_REPORTER_H_
+#define _BPF_REPORTER_H_
+
+#include "seccomp_bpf.h"
+
+#undef KILL_PROCESS
+#define KILL_PROCESS \
+ BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_TRAP)
+
+extern int install_syscall_reporter(void);
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698