Index: sandbox/linux/bpf_dsl/trap_registry.h |
diff --git a/sandbox/linux/bpf_dsl/trap_registry.h b/sandbox/linux/bpf_dsl/trap_registry.h |
index 6f8d37a7f48842ffe1ac0778ef1f56e1caaa42d1..0a5d2f14cccfcd2c51ed80e7bfa39d8811d79464 100644 |
--- a/sandbox/linux/bpf_dsl/trap_registry.h |
+++ b/sandbox/linux/bpf_dsl/trap_registry.h |
@@ -49,6 +49,11 @@ class SANDBOX_EXPORT TrapRegistry { |
// EnableUnsafeTraps tries to enable unsafe traps and returns |
// whether it was successful. This is a one-way operation. |
+ // |
+ // CAUTION: Enabling unsafe traps effectively defeats the security |
+ // guarantees provided by the sandbox policy. TrapRegistry |
+ // implementations should ensure unsafe traps are only enabled |
+ // during testing. |
virtual bool EnableUnsafeTraps() = 0; |
protected: |