public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/3] DNS forwarding: follow nameserver changes in passt mode too
@ 2026-12-04  7:31 Aditya Merchant
  2026-12-04  7:31 ` [PATCH 1/3] passt.1: Say plainly which nameserver new DNS flows go to Aditya Merchant
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Aditya Merchant @ 2026-12-04  7:31 UTC (permalink / raw)
  To: passt-dev; +Cc: Stefano Brivio, David Gibson, Paul Holzinger, Laurent Vivier

These are the follow-ups Stefano suggested after applying "conf: Follow
changes to the host nameserver used for DNS forwarding":

- 1/3 rewords the passt.1 sentence that was hard to read
- 2/3 forgets a nameserver once resolv.conf doesn't list one for that IP
  version anymore, as we do at start-up
- 3/3 follows changes in passt mode too, which needs openat() in passt's
  seccomp profile (34 to 35 syscalls on x86_64, pasta stays at 43)

Tested on Kali (arm64, Linux 7.1) with the AppArmor profiles enforcing,
using a small script that acts as a guest on passt's socket and sends
DNS queries to the --dns-forward address. In passt mode, new queries
reach the new nameserver after resolv.conf is replaced by rename,
rewritten in place, filled in after starting without a nameserver, or
replaced through a link into /run/resolvconf. With --dns-host, the
address stays fixed. Once the nameserver is removed, queries aren't
redirected anymore, and they are again once one is listed. Without the
AppArmor rule that 3/3 moves to the passt abstraction, passt can't read
resolv.conf under /run. pasta behaves as before, except that it now
forgets a removed nameserver as well. The extended test passes, and its
new cases fail on current master. 'make cppcheck' and 'make clang-tidy'
pass.

The SELinux modules build against Fedora 45's policy, but I couldn't try
them with SELinux enforcing.

Aditya Merchant (3):
  passt.1: Say plainly which nameserver new DNS flows go to
  conf: Forget host nameserver once it's removed from resolv.conf
  conf: Follow changes to the host nameserver in passt mode, too

 README.md                           |  2 +-
 conf.c                              | 19 +++++++++++++++----
 contrib/apparmor/abstractions/passt |  4 ++++
 contrib/apparmor/abstractions/pasta |  4 ----
 contrib/selinux/passt.te            |  4 ++++
 passt.1                             |  6 +++---
 test/pasta_options/dns_host_follow  | 23 +++++++++++++++++++++--
 7 files changed, 48 insertions(+), 14 deletions(-)

-- 
2.50.1 (Apple Git-155)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-04 22:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-04  7:31 [PATCH 0/3] DNS forwarding: follow nameserver changes in passt mode too Aditya Merchant
2026-12-04  7:31 ` [PATCH 1/3] passt.1: Say plainly which nameserver new DNS flows go to Aditya Merchant
2026-12-04 21:35   ` Jon Maloy
2026-12-04  7:31 ` [PATCH 2/3] conf: Forget host nameserver once it's removed from resolv.conf Aditya Merchant
2026-12-04 22:15   ` Jon Maloy
2026-12-04 22:36     ` Stefano Brivio
2026-12-04  7:31 ` [PATCH 3/3] conf: Follow changes to the host nameserver in passt mode, too Aditya Merchant
2026-12-04 22:31 ` [PATCH 0/3] DNS forwarding: follow nameserver changes in passt mode too Stefano Brivio

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).