Index: sandbox/linux/seccomp-bpf/errorcode.cc |
diff --git a/sandbox/linux/seccomp-bpf/errorcode.cc b/sandbox/linux/seccomp-bpf/errorcode.cc |
index 648485282023247b26a7c85adb63ca885701542c..5a45e4c8cf392d71c55d9f4b04ecb31f51564fda 100644 |
--- a/sandbox/linux/seccomp-bpf/errorcode.cc |
+++ b/sandbox/linux/seccomp-bpf/errorcode.cc |
@@ -18,6 +18,11 @@ ErrorCode::ErrorCode(int err) { |
error_type_ = ET_SIMPLE; |
break; |
default: |
+ if ((err & ~SECCOMP_RET_DATA) == ERR_TRACE) { |
+ err_ = SECCOMP_RET_TRACE + (err & SECCOMP_RET_DATA); |
+ error_type_ = ET_SIMPLE; |
+ break; |
+ } |
SANDBOX_DIE("Invalid use of ErrorCode object"); |
} |
} |