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

Unified Diff: sandbox/linux/seccomp-bpf/verifier.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: Changelist is ready for initial review; still needs a few TODO()s to be resolved, though. 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 side-by-side diff with in-line comments
Download patch
Index: sandbox/linux/seccomp-bpf/verifier.h
diff --git a/sandbox/linux/seccomp-bpf/verifier.h b/sandbox/linux/seccomp-bpf/verifier.h
index 505015e39ceb471c304f3377948635273ec31fcb..f66e7e9375942b1b356917826403d44f30b7d0d1 100644
--- a/sandbox/linux/seccomp-bpf/verifier.h
+++ b/sandbox/linux/seccomp-bpf/verifier.h
@@ -60,6 +60,9 @@ class Verifier {
DISALLOW_IMPLICIT_CONSTRUCTORS(State);
};
+ static bool VerifyErrorCode(const std::vector<struct sock_filter>& prg,
+ struct arch_seccomp_data *data,
+ const ErrorCode& code, const char **err);
static void Ld (State *state, const struct sock_filter& insn,
const char **err);
static void Jmp(State *state, const struct sock_filter& insn,

Powered by Google App Engine
This is Rietveld 408576698