<feed xmlns='http://www.w3.org/2005/Atom'>
<title>passt/README.md, branch 2026_12_04.a39d958</title>
<subtitle>Plug A Simple Socket Transport</subtitle>
<link rel='alternate' type='text/html' href='https://passt.top/passt/'/>
<entry>
<title>conf: Follow changes to the host nameserver in passt mode, too</title>
<updated>2026-12-04T21:54:33+00:00</updated>
<author>
<name>Aditya Merchant</name>
<email>adityamerchant08@gmail.com</email>
</author>
<published>2026-12-04T07:31:19+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=0ae06bb610806d3f7567da5c8115076b14b82ef5'/>
<id>0ae06bb610806d3f7567da5c8115076b14b82ef5</id>
<content type='text'>
We follow changes to the host's resolv.conf in pasta mode only, as
passt doesn't allow openat() in its seccomp profile. But guests using
--dns-forward are affected just like containers: once the host switches
to another network, or connects to a VPN, their DNS queries keep going
to a stale nameserver until passt restarts.

Allow openat() for passt, too, and drop the check on the mode. We only
use it to open resolv.conf through the read-only, detached copy of its
directory: everything else conf_resolv_watch() needs happens before we
apply seccomp filters, and, once we're sandboxed, there's nothing else
we could open by path anyway. This brings passt to 35 allowed system
calls on x86_64.

Move the AppArmor rule for resolv.conf under /run from the pasta
abstraction to the passt one, which pasta includes, and let passt watch
the same directories as pasta with SELinux.

Extend the dns_host_follow test to check that passt, without a guest,
picks up a new nameserver and forgets a removed one.

Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Link: https://archives.passt.top/passt-dev/20261130013444.57add0dc@elisabeth/
Link: https://archives.passt.top/passt-dev/20261130013439.0a40738a@elisabeth/
Signed-off-by: Aditya Merchant &lt;adityamerchant08@gmail.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We follow changes to the host's resolv.conf in pasta mode only, as
passt doesn't allow openat() in its seccomp profile. But guests using
--dns-forward are affected just like containers: once the host switches
to another network, or connects to a VPN, their DNS queries keep going
to a stale nameserver until passt restarts.

Allow openat() for passt, too, and drop the check on the mode. We only
use it to open resolv.conf through the read-only, detached copy of its
directory: everything else conf_resolv_watch() needs happens before we
apply seccomp filters, and, once we're sandboxed, there's nothing else
we could open by path anyway. This brings passt to 35 allowed system
calls on x86_64.

Move the AppArmor rule for resolv.conf under /run from the pasta
abstraction to the passt one, which pasta includes, and let passt watch
the same directories as pasta with SELinux.

Extend the dns_host_follow test to check that passt, without a guest,
picks up a new nameserver and forgets a removed one.

Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Link: https://archives.passt.top/passt-dev/20261130013444.57add0dc@elisabeth/
Link: https://archives.passt.top/passt-dev/20261130013439.0a40738a@elisabeth/
Signed-off-by: Aditya Merchant &lt;adityamerchant08@gmail.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: Sandbox qrap</title>
<updated>2026-07-28T16:09:54+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2026-07-18T07:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=12b02aaebcc69d4506b1a65ef8251fc0453a1d1b'/>
<id>12b02aaebcc69d4506b1a65ef8251fc0453a1d1b</id>
<content type='text'>
No sunsetting or rightsizing for you, qrap: dig, bury, and cover.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No sunsetting or rightsizing for you, qrap: dig, bury, and cover.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tcp: Limit advertised window to available, not total sending buffer size</title>
<updated>2025-12-08T07:03:23+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2025-12-01T21:54:57+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=920a479de40b58a81178e5d6e96c0eed30b992d5'/>
<id>920a479de40b58a81178e5d6e96c0eed30b992d5</id>
<content type='text'>
For non-local connections, we advertise the same window size as what
the peer in turn advertises to us, and limit it to the buffer size
reported via SO_SNDBUF.

That's not quite correct: in order to later avoid failures while
queueing data to the socket, we need to limit the window to the
available buffer size, not the total one.

Use the SIOCOUTQ ioctl and subtract the number of outbound queued
bytes from the total buffer size, then clamp to this value.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For non-local connections, we advertise the same window size as what
the peer in turn advertises to us, and limit it to the buffer size
reported via SO_SNDBUF.

That's not quite correct: in order to later avoid failures while
queueing data to the socket, we need to limit the window to the
available buffer size, not the total one.

Use the SIOCOUTQ ioctl and subtract the number of outbound queued
bytes from the total buffer size, then clamp to this value.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add CONTRIBUTING.md</title>
<updated>2025-09-18T15:17:10+00:00</updated>
<author>
<name>Yumei Huang</name>
<email>yuhuang@redhat.com</email>
</author>
<published>2025-09-18T01:17:34+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=080f176ed13245f9c2999ee5bf76fa4ca56dc7d3'/>
<id>080f176ed13245f9c2999ee5bf76fa4ca56dc7d3</id>
<content type='text'>
Signed-off-by: Yumei Huang &lt;yuhuang@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Yumei Huang &lt;yuhuang@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: Flush pcap and log files, if used, before exiting</title>
<updated>2025-08-19T14:29:52+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2025-08-13T16:45:05+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=b4fc6cd31a8729b92a305008e443b56310fd30d4'/>
<id>b4fc6cd31a8729b92a305008e443b56310fd30d4</id>
<content type='text'>
I didn't imagine that occasionally truncated pcap and log files, as a
result of commit d0006fa784a7 ("treewide: use _exit() over exit()"),
would be such a big deal, until I tried to debug TCP issues with this
beauty:

  while true; do ./pasta --trace -l /tmp/pasta.log -p /tmp/pasta.pcap --config-net -t 5555 -- socat TCP-LISTEN:5555 OPEN:/tmp/large.rcv,trunc &amp; (sleep 0.3; socat -T2 OPEN:large.bin TCP:88.198.0.164:5555; ); wait; diff large.bin /tmp/large.rcv || break; done

...flush files and pcap if we're using them. Ignore fsync() errors for
the log file as we obviously can't reliably log them.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I didn't imagine that occasionally truncated pcap and log files, as a
result of commit d0006fa784a7 ("treewide: use _exit() over exit()"),
would be such a big deal, until I tried to debug TCP issues with this
beauty:

  while true; do ./pasta --trace -l /tmp/pasta.log -p /tmp/pasta.pcap --config-net -t 5555 -- socat TCP-LISTEN:5555 OPEN:/tmp/large.rcv,trunc &amp; (sleep 0.3; socat -T2 OPEN:large.bin TCP:88.198.0.164:5555; ); wait; diff large.bin /tmp/large.rcv || break; done

...flush files and pcap if we're using them. Ignore fsync() errors for
the log file as we obviously can't reliably log them.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>README: Mark vhost-user as supported</title>
<updated>2024-12-12T09:50:48+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2024-12-12T09:50:48+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=e5ba8adef71ec53e192373ed1267dc338719dda0'/>
<id>e5ba8adef71ec53e192373ed1267dc338719dda0</id>
<content type='text'>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>README: pasta is indeed a supported back-end for rootless Docker</title>
<updated>2024-08-21T10:05:26+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2024-08-20T20:56:02+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=1d6142f362c761ad800b0cbf6ab69cea426658e8'/>
<id>1d6142f362c761ad800b0cbf6ab69cea426658e8</id>
<content type='text'>
...https://github.com/moby/moby/issues/48257 just reminded me.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
...https://github.com/moby/moby/issues/48257 just reminded me.

Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo in README file</title>
<updated>2024-07-29T17:02:35+00:00</updated>
<author>
<name>AbdAlRahman Gad</name>
<email>abdobngad@gmail.com</email>
</author>
<published>2024-07-29T02:20:06+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=8fae3b73cb1451f766037583c02d86971502f5eb'/>
<id>8fae3b73cb1451f766037583c02d86971502f5eb</id>
<content type='text'>
- remove duplicated 'the' in the 'Services' section

Signed-off-by: AbdAlRahman Gad &lt;abdobngad@gmail.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- remove duplicated 'the' in the 'Services' section

Signed-off-by: AbdAlRahman Gad &lt;abdobngad@gmail.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>README.md: Alpine, Guix and OpenSUSE now have packages for passt</title>
<updated>2024-04-05T10:12:23+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2024-03-26T10:36:05+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=bbea2752f681d8c255779d912c9abdc8a7051b6f'/>
<id>bbea2752f681d8c255779d912c9abdc8a7051b6f</id>
<content type='text'>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>README: Default SLAAC prefix comes from address (not prefix) on host</title>
<updated>2023-12-30T10:45:27+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2023-12-27T10:48:20+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=62b94c3ec832f23b985db7d27b30052d2a83cf9a'/>
<id>62b94c3ec832f23b985db7d27b30052d2a83cf9a</id>
<content type='text'>
Reported-by: Yalan Zhang &lt;yalzhang@redhat.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported-by: Yalan Zhang &lt;yalzhang@redhat.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
