Skip to content

Commit 2ed65bf

Browse files
committed
rw_lock: warn about untrusted remotes
1 parent 6b432c7 commit 2ed65bf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

remoc/src/robj/rw_lock/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
//! and the remote endpoints, thus its performance is limited by the physical connection
1515
//! latency.
1616
//!
17+
//! # Security
18+
//!
19+
//! This module is **not** designed for use with untrusted remote peers.
20+
//! A malicious peer can hold a [ReadGuard](ReadGuard) or [WriteGuard](WriteGuard)
21+
//! indefinitely, which blocks the [Owner](Owner) from processing any further
22+
//! read or write requests, effectively causing a denial of service for all peers.
23+
//! Only use this module with trusted peers.
24+
//!
1725
//! # Usage
1826
//!
1927
//! [Create an RwLock owner](Owner::new) and use [Owner::rw_lock] to acquire

0 commit comments

Comments
 (0)