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

Unified Diff: experimental/webtry/seccomp_bpf.h

Issue 555993002: disable webtry seccmp on non-linux build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rename safety flag to make it more clear what's going on Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/webtry/main.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/seccomp_bpf.h
diff --git a/experimental/webtry/seccomp_bpf.h b/experimental/webtry/seccomp_bpf.h
index 02bf3cff3a7124d01680ee6391690a93c9671afd..bf72f9aa991b22910274d66136f6663e2f89993b 100644
--- a/experimental/webtry/seccomp_bpf.h
+++ b/experimental/webtry/seccomp_bpf.h
@@ -14,6 +14,8 @@
#ifndef _SECCOMP_BPF_H_
#define _SECCOMP_BPF_H_
+#ifndef SK_UNSAFE_BUILD_DESKTOP_ONLY
+
#define _GNU_SOURCE 1
#include <stdio.h>
#include <stddef.h>
@@ -62,4 +64,6 @@ struct seccomp_data {
#define KILL_PROCESS \
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL)
+#endif /* SK_UNSAFE_BUILD_DESKTOP_ONLY */
+
#endif /* _SECCOMP_BPF_H_ */
« no previous file with comments | « experimental/webtry/main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698