Fun-reliable side-channels for cross-container communication
simonwillison.net·22h
Flag this post

Fun-reliable side-channels for cross-container communication (via) Here’s a very clever hack for communicating between different processes running in different containers on the same machine. It’s based on clever abuse of POSIX advisory locks which allow a process to create and detect locks across byte offset ranges:

These properties combined are enough to provide a basic cross-container side-channel primitive, because a process in one container can set a read-lock at some interval on /proc/self/ns/time, and a process in another container can observe the presence of that lock by querying for a hypothetically intersecting write-lock.

I dumped [the C proof-of-concept…

Similar Posts

Loading similar posts...