Categories: Fun

Fun-reliable side-channels for cross-container communication

This web page was created programmatically, to learn the article in its authentic location you’ll be able to go to the hyperlink bellow:
https://simonwillison.net/2025/Nov/12/h4x0rchat/
and if you wish to take away this text from our website please contact us


Fun-reliable side-channels for cross-container communication (via) Here’s a really intelligent hack for speaking between completely different processes working in several containers on the identical machine. It’s primarily based on intelligent abuse of POSIX advisory locks which permit a course of to create and detect locks throughout byte offset ranges:

These properties mixed are sufficient to supply a primary cross-container side-channel primitive, as a result of a course of in a single container can set a read-lock at some interval on /proc/self/ns/time, and a course of in one other container can observe the presence of that lock by querying for a hypothetically intersecting write-lock.

I dumped the C proof-of-concept into GPT-5 for a code-level explanation, then had it assist me work out learn how to run it in Docker. Here’s the recipe that labored for me:

cd /tmp
wget 
docker run --rm -it -v "$PWD:/src" 
  -w /src gcc:13 bash -lc 'gcc -Wall -O2 
  -o h4x0rchat h4x0rchat.c && ./h4x0rchat'

Run that docker run line in two separate terminal home windows and you’ll chat between the 2 of them like this:


This web page was created programmatically, to learn the article in its authentic location you’ll be able to go to the hyperlink bellow:
https://simonwillison.net/2025/Nov/12/h4x0rchat/
and if you wish to take away this text from our website please contact us

fooshya

Share
Published by
fooshya

Recent Posts

Can anybody use a Māori title? – Way of life News

This web page was created programmatically, to learn the article in its unique location you…

6 minutes ago

How you can use the AI pictures instruments

This web page was created programmatically, to learn the article in its authentic location you…

8 minutes ago

Commonwealth Games swimming preview: Liendo’s time to shine

This web page was created programmatically, to learn the article in its authentic location you'll…

14 minutes ago

Infacet Wally’s first Indiana journey heart and largest location but

This web page was created programmatically, to learn the article in its authentic location you'll…

17 minutes ago

The Xteink X4 Pro Is A Tiny Ereader With Extra Options Than You May Anticipate

This web page was created programmatically, to learn the article in its unique location you'll…

20 minutes ago

The perfect Google AI instruments for faculty college students on summer time break

This web page was created programmatically, to learn the article in its unique location you…

23 minutes ago