Index: sandbox/linux/seccomp-bpf/errorcode.h |
diff --git a/sandbox/linux/seccomp-bpf/errorcode.h b/sandbox/linux/seccomp-bpf/errorcode.h |
index 04f22aec80b7a701d39f8593a5534e5584d49ba4..2e513818d8148f4257469f9fa8440fe43124b0b9 100644 |
--- a/sandbox/linux/seccomp-bpf/errorcode.h |
+++ b/sandbox/linux/seccomp-bpf/errorcode.h |
@@ -30,6 +30,12 @@ class SANDBOX_EXPORT ErrorCode { |
// "errno" (see below) value instead. |
ERR_ALLOWED = 0x04000000, |
+ // If the progress is being ptraced with PTRACE_O_TRACESECCOMP, then the |
+ // tracer will be notified of a PTRACE_EVENT_SECCOMP and allowed to change |
+ // or skip the system call. The lower 16 bits of err will be available to |
+ // the tracer via PTRACE_GETEVENTMSG. |
+ ERR_TRACE = 0x08000000, |
+ |
// Deny the system call with a particular "errno" value. |
// N.B.: It is also possible to return "0" here. That would normally |
// indicate success, but it won't actually run the system call. |