<feed xmlns='http://www.w3.org/2005/Atom'>
<title>passt, branch master</title>
<subtitle>Plug A Simple Socket Transport</subtitle>
<link rel='alternate' type='text/html' href='https://passt.top/passt/'/>
<entry>
<title>netlink: Only consider gateway from the selected template interface</title>
<updated>2026-12-04T21:54:33+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>bschubert15@bloomberg.net</email>
</author>
<published>2026-12-04T15:06:10+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=a39d958da8eb1ca6b582648f328408623f0a04e4'/>
<id>a39d958da8eb1ca6b582648f328408623f0a04e4</id>
<content type='text'>
Previously, netlink could select a gateway from a different interface
if it had higher weights than the one from the selected interface.

This can lead to a namespace having an unreachable default gateway.

This considers only nexthops from the current interface instead of all
interfaces when looking at the template interface, ensuring that the ip
and the gateway are always aligned.

Link: https://bugs.passt.top/show_bug.cgi?id=232
Fixes: 6c7623d07bbd ("netlink: Add support to fetch default gateway from multipath routes")
Signed-off-by: Benjamin Schubert &lt;bschubert15@bloomberg.net&gt;
[sbrivio: Minor man page edit for clarity, 198.51.100.0/24 in tests]
Reviewed-by: Jon Maloy &lt;jmaloy@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>
Previously, netlink could select a gateway from a different interface
if it had higher weights than the one from the selected interface.

This can lead to a namespace having an unreachable default gateway.

This considers only nexthops from the current interface instead of all
interfaces when looking at the template interface, ensuring that the ip
and the gateway are always aligned.

Link: https://bugs.passt.top/show_bug.cgi?id=232
Fixes: 6c7623d07bbd ("netlink: Add support to fetch default gateway from multipath routes")
Signed-off-by: Benjamin Schubert &lt;bschubert15@bloomberg.net&gt;
[sbrivio: Minor man page edit for clarity, 198.51.100.0/24 in tests]
Reviewed-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>conf: Make --splice-only and --fd mutually exclusive</title>
<updated>2026-12-04T21:54:33+00:00</updated>
<author>
<name>Stuart McLaren</name>
<email>stuart.mclaren@hpe.com</email>
</author>
<published>2026-12-04T14:45:19+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=24470b42b36a44dbd94d9cf28a166a02fb2eb58a'/>
<id>24470b42b36a44dbd94d9cf28a166a02fb2eb58a</id>
<content type='text'>
The --fd option passes in a pre-opened fd carrying layer 2 traffic
(tap datapath). In splice-only mode that datapath is unusable: with L2
buffers no longer initialised, traffic from the fd is silently
dropped. Reject the combination.

Link: https://archives.passt.top/passt-dev/20261203175624.3078368-1-stuart.mclaren@hpe.com/
Signed-off-by: Stuart McLaren &lt;stuart.mclaren@hpe.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>
The --fd option passes in a pre-opened fd carrying layer 2 traffic
(tap datapath). In splice-only mode that datapath is unusable: with L2
buffers no longer initialised, traffic from the fd is silently
dropped. Reject the combination.

Link: https://archives.passt.top/passt-dev/20261203175624.3078368-1-stuart.mclaren@hpe.com/
Signed-off-by: Stuart McLaren &lt;stuart.mclaren@hpe.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tcp: Don't add peers to low RTT table before RTT is measured</title>
<updated>2026-12-04T21:54:33+00:00</updated>
<author>
<name>Pietro De Domenico</name>
<email>lynxes.exe@gmail.com</email>
</author>
<published>2026-11-12T15:56:44+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=5e7a154aaaa8891afa007e111aed6d67f7680645'/>
<id>5e7a154aaaa8891afa007e111aed6d67f7680645</id>
<content type='text'>
The kernel initialises the minimum RTT of a socket to ~0U (see
tcp_init_sock() and tcp_create_openreq_child()), and tcpi_min_rtt keeps
that value until the first RTT sample.

For a passively opened socket, the handshake gives no sample if the
SYN-ACK was retransmitted (Karn's algorithm, see tcp_synack_rtt_meas()),
and the only fallback is the timestamp echo, which isn't there if the
peer didn't negotiate TCP timestamps. Windows clients don't, by default.

tcp_rtt_dst_check() casts tcpi_min_rtt to int, so ~0U becomes -1, the
peer passes the threshold check, and it's added to the low RTT table,
which it never leaves: from then on, every connection with that peer
advertises an unclamped window to the guest and stalls on
retransmissions.

Skip the check while the minimum RTT hasn't been measured yet.

Reproduced on Linux 6.18.57 by dropping SYN-ACKs at a client with
net.ipv4.tcp_timestamps set to 0, for two seconds: tcpi_min_rtt of the
accepted socket is 0xffffffff, with tcpi_total_retrans 3, and pasta
would have added the client to the table.

Link: https://archives.passt.top/passt-dev/CAJPNJUuUYSkW776P0hKmweHnKOqXtsXqwm4HXP-+jorXrSfFFg@mail.gmail.com/
Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Signed-off-by: Pietro De Domenico &lt;lynxes.exe@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>
The kernel initialises the minimum RTT of a socket to ~0U (see
tcp_init_sock() and tcp_create_openreq_child()), and tcpi_min_rtt keeps
that value until the first RTT sample.

For a passively opened socket, the handshake gives no sample if the
SYN-ACK was retransmitted (Karn's algorithm, see tcp_synack_rtt_meas()),
and the only fallback is the timestamp echo, which isn't there if the
peer didn't negotiate TCP timestamps. Windows clients don't, by default.

tcp_rtt_dst_check() casts tcpi_min_rtt to int, so ~0U becomes -1, the
peer passes the threshold check, and it's added to the low RTT table,
which it never leaves: from then on, every connection with that peer
advertises an unclamped window to the guest and stalls on
retransmissions.

Skip the check while the minimum RTT hasn't been measured yet.

Reproduced on Linux 6.18.57 by dropping SYN-ACKs at a client with
net.ipv4.tcp_timestamps set to 0, for two seconds: tcpi_min_rtt of the
accepted socket is 0xffffffff, with tcpi_total_retrans 3, and pasta
would have added the client to the table.

Link: https://archives.passt.top/passt-dev/CAJPNJUuUYSkW776P0hKmweHnKOqXtsXqwm4HXP-+jorXrSfFFg@mail.gmail.com/
Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Signed-off-by: Pietro De Domenico &lt;lynxes.exe@gmail.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>migrate, tcp: Account for bytes acknowledged before migration</title>
<updated>2026-12-04T21:54:33+00:00</updated>
<author>
<name>Laurent Vivier</name>
<email>lvivier@redhat.com</email>
</author>
<published>2026-12-04T12:28:02+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=1d3afa7c3a4532055bd841fcf669b89345557c87'/>
<id>1d3afa7c3a4532055bd841fcf669b89345557c87</id>
<content type='text'>
The repaired socket starts with tcpi_bytes_acked at zero. Even though
seq_ack_to_tap is migrated, ACKs computed afterward from tcpi_bytes_acked
are missing the progress made on the source.

If the target uses this counter, it can send an ACK older than the last
ACK the guest received before migration. The guest keeps retransmitting
the first segment it is still waiting for passt to acknowledge, and
rampstream_out can stall.

[Note from Jon:

 Strictly speaking, we never send an older ACK, because
 tcp_update_seqack_wnd() doesn't let seq_ack_to_tap go backwards. The
 ACK instead gets stuck at the migrated value until the new socket has
 acknowledged as much data as the old one did, and that's what makes
 the guest stall.
]

A bug in tcp_rtt_dst_check() hid this in our tests. On a repaired
socket, tcpi_min_rtt is ~0U until the first RTT sample. The cast to
int turned ~0U into -1, so the target added the peer to low_rtt_dst[]
and used seq_from_tap for ACKs.

To fix that, we set seq_init_from_tap on the target using the state
already sent by the source:

    seq_init_from_tap = seq_from_tap - t.sndq

seq_from_tap is the next sequence number passt expects from the guest.
t.sndq includes both unsent bytes and sent bytes awaiting an ACK, so
subtracting it gives the guest sequence at the head of the restored
send queue. tcp_update_seqack_wnd() adds the repaired socket's
tcpi_bytes_acked to this base when computing the ACK sent to the guest.

This also works when migrating from an older passt using the v2 format.

Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
Tested-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
[sbrivio: Reworded comment in tcp_flow_migrate_target_ext()]
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The repaired socket starts with tcpi_bytes_acked at zero. Even though
seq_ack_to_tap is migrated, ACKs computed afterward from tcpi_bytes_acked
are missing the progress made on the source.

If the target uses this counter, it can send an ACK older than the last
ACK the guest received before migration. The guest keeps retransmitting
the first segment it is still waiting for passt to acknowledge, and
rampstream_out can stall.

[Note from Jon:

 Strictly speaking, we never send an older ACK, because
 tcp_update_seqack_wnd() doesn't let seq_ack_to_tap go backwards. The
 ACK instead gets stuck at the migrated value until the new socket has
 acknowledged as much data as the old one did, and that's what makes
 the guest stall.
]

A bug in tcp_rtt_dst_check() hid this in our tests. On a repaired
socket, tcpi_min_rtt is ~0U until the first RTT sample. The cast to
int turned ~0U into -1, so the target added the peer to low_rtt_dst[]
and used seq_from_tap for ACKs.

To fix that, we set seq_init_from_tap on the target using the state
already sent by the source:

    seq_init_from_tap = seq_from_tap - t.sndq

seq_from_tap is the next sequence number passt expects from the guest.
t.sndq includes both unsent bytes and sent bytes awaiting an ACK, so
subtracting it gives the guest sequence at the head of the restored
send queue. tcp_update_seqack_wnd() adds the repaired socket's
tcpi_bytes_acked to this base when computing the ACK sent to the guest.

This also works when migrating from an older passt using the v2 format.

Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
Tested-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
[sbrivio: Reworded comment in tcp_flow_migrate_target_ext()]
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<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>conf: Forget host nameserver once it's removed from resolv.conf</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:18+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=08e09ec2bc76e667559abef6e06a8e1429a615fb'/>
<id>08e09ec2bc76e667559abef6e06a8e1429a615fb</id>
<content type='text'>
When we follow changes to resolv.conf, and it doesn't list a nameserver
for an IP version anymore, conf_resolv_update() keeps the one we had
before, and we keep redirecting DNS queries to it.

That's not what we do at start-up, where get_dns() leaves .dns_host
unspecified if there's no nameserver for that IP version, and it's
probably not what users expect either: a nameserver might have been
removed for a reason. Clear .dns_host in that case, so that we stop
redirecting DNS queries for that IP version, until a nameserver is
listed again.

Extend the dns_host_follow test to check this. As that takes a few more
steps, keep pasta running until a file shows up, instead of for a fixed
time, which could end before the last step.

Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
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>
When we follow changes to resolv.conf, and it doesn't list a nameserver
for an IP version anymore, conf_resolv_update() keeps the one we had
before, and we keep redirecting DNS queries to it.

That's not what we do at start-up, where get_dns() leaves .dns_host
unspecified if there's no nameserver for that IP version, and it's
probably not what users expect either: a nameserver might have been
removed for a reason. Clear .dns_host in that case, so that we stop
redirecting DNS queries for that IP version, until a nameserver is
listed again.

Extend the dns_host_follow test to check this. As that takes a few more
steps, keep pasta running until a file shows up, instead of for a fixed
time, which could end before the last step.

Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
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>passt.1: Say plainly which nameserver new DNS flows go to</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:17+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=955fd3e7b900a66c2ba0cafb5b1bfa45286452c3'/>
<id>955fd3e7b900a66c2ba0cafb5b1bfa45286452c3</id>
<content type='text'>
Once resolv.conf changes, the description of --dns-host says that new
DNS flows go to "its current first nameserver of the same IP version".
It's not obvious that "its" refers to resolv.conf, and, if it does, it
doesn't add anything. Say that they go to the first nameserver listed
for each IP version instead.

Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Link: https://archives.passt.top/passt-dev/20261130013439.0a40738a@elisabeth/
Signed-off-by: Aditya Merchant &lt;adityamerchant08@gmail.com&gt;
Reviewed-by: Jon Maloy &lt;jmaloy@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>
Once resolv.conf changes, the description of --dns-host says that new
DNS flows go to "its current first nameserver of the same IP version".
It's not obvious that "its" refers to resolv.conf, and, if it does, it
doesn't add anything. Say that they go to the first nameserver listed
for each IP version instead.

Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Link: https://archives.passt.top/passt-dev/20261130013439.0a40738a@elisabeth/
Signed-off-by: Aditya Merchant &lt;adityamerchant08@gmail.com&gt;
Reviewed-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: no L2 buffer in splice-only mode</title>
<updated>2026-12-04T21:54:18+00:00</updated>
<author>
<name>Stuart McLaren</name>
<email>stuart.mclaren@hpe.com</email>
</author>
<published>2026-12-03T17:56:24+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=66e115b7f2188dd8d49d5738959fecc540ce9727'/>
<id>66e115b7f2188dd8d49d5738959fecc540ce9727</id>
<content type='text'>
Save memory by not initializing L2 memory buffers when
running in --splice-only mode.

This reduces pasta memory use when running splice only.
For example, on one measured system, VmRSS went from
~12 MB to ~3 MB.

Signed-off-by: Stuart McLaren &lt;stuart.mclaren@hpe.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>
Save memory by not initializing L2 memory buffers when
running in --splice-only mode.

This reduces pasta memory use when running splice only.
For example, on one measured system, VmRSS went from
~12 MB to ~3 MB.

Signed-off-by: Stuart McLaren &lt;stuart.mclaren@hpe.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netlink: Ignore routes via gateways from another address family</title>
<updated>2026-12-04T21:54:12+00:00</updated>
<author>
<name>Jon Maloy</name>
<email>jmaloy@redhat.com</email>
</author>
<published>2026-12-03T15:04:41+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=71ee9ecf920cc2b63f5ff4d8d05c2c32ae1241ed'/>
<id>71ee9ecf920cc2b63f5ff4d8d05c2c32ae1241ed</id>
<content type='text'>
With NetworkManager's CLAT implementation, the IPv4 default route has
an IPv6 gateway, given in a RTA_VIA attribute instead of RTA_GATEWAY:

  default via inet6 fe80::1 dev wlp170s0f0 proto static src 192.0.0.5

nl_get_ext_if() picks the interface of that route as template for
IPv4, but nl_route_get_def() finds no IPv4 gateway, so we disable DHCP
altogether, and the guest silently ends up without IPv4 connectivity,
even if the host has it.

We can't pass a gateway of a different address family on to the guest,
so don't consider such routes in nl_get_ext_if(). If no other IPv4
routes are available, as in the case above, we fall back to local
mode, which gives the guest a working IPv4 configuration: traffic
still reaches the host via our sockets, and the host translates it.
The address we would otherwise copy, from 192.0.0.0/29 (RFC 7335), is
just a placeholder in CLAT setups anyway.

Link: https://bugs.passt.top/show_bug.cgi?id=231
Reported-by: Erica Z &lt;zerica@callcc.eu&gt;
Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Signed-off-by: Jon Maloy &lt;jmaloy@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>
With NetworkManager's CLAT implementation, the IPv4 default route has
an IPv6 gateway, given in a RTA_VIA attribute instead of RTA_GATEWAY:

  default via inet6 fe80::1 dev wlp170s0f0 proto static src 192.0.0.5

nl_get_ext_if() picks the interface of that route as template for
IPv4, but nl_route_get_def() finds no IPv4 gateway, so we disable DHCP
altogether, and the guest silently ends up without IPv4 connectivity,
even if the host has it.

We can't pass a gateway of a different address family on to the guest,
so don't consider such routes in nl_get_ext_if(). If no other IPv4
routes are available, as in the case above, we fall back to local
mode, which gives the guest a working IPv4 configuration: traffic
still reaches the host via our sockets, and the host translates it.
The address we would otherwise copy, from 192.0.0.0/29 (RFC 7335), is
just a placeholder in CLAT setups anyway.

Link: https://bugs.passt.top/show_bug.cgi?id=231
Reported-by: Erica Z &lt;zerica@callcc.eu&gt;
Suggested-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Signed-off-by: Jon Maloy &lt;jmaloy@redhat.com&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>selinux: Don't use legacy /var/run path for PID file context</title>
<updated>2026-12-03T01:50:27+00:00</updated>
<author>
<name>Stefano Brivio</name>
<email>sbrivio@redhat.com</email>
</author>
<published>2026-12-03T01:50:27+00:00</published>
<link rel='alternate' type='text/html' href='https://passt.top/passt/commit/?id=29fc1490b48a04b4d3fde8769c7c64d594335915'/>
<id>29fc1490b48a04b4d3fde8769c7c64d594335915</id>
<content type='text'>
Radosław reports that each install of the passt-selinux package
triggers two policy rebuilds, because, quoting:

  /usr/libexec/selinux/varrun-convert.sh finds this entry in file_contexts,
  generates the extra_varrun module and runs a second "semodule -i".
  %selinux_modules_install removes extra_varrun first, so each install or
  update of any package with a SELinux module does two full policy rebuilds
  instead of one (13-14 s each on one of my machines).

Fix this by switching to the modern /run path for the PID file
context.

Reported-by: Radosław Stachowiak &lt;50bda1cd2babf798@rdslw.online&gt;
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2587559
Suggested-by: Radosław Stachowiak &lt;50bda1cd2babf798@rdslw.online&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Radosław reports that each install of the passt-selinux package
triggers two policy rebuilds, because, quoting:

  /usr/libexec/selinux/varrun-convert.sh finds this entry in file_contexts,
  generates the extra_varrun module and runs a second "semodule -i".
  %selinux_modules_install removes extra_varrun first, so each install or
  update of any package with a SELinux module does two full policy rebuilds
  instead of one (13-14 s each on one of my machines).

Fix this by switching to the modern /run path for the PID file
context.

Reported-by: Radosław Stachowiak &lt;50bda1cd2babf798@rdslw.online&gt;
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2587559
Suggested-by: Radosław Stachowiak &lt;50bda1cd2babf798@rdslw.online&gt;
Signed-off-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
