public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Aditya Merchant <adityamerchant08@gmail.com>
Cc: passt-dev@passt.top, David Gibson <david@gibson.dropbear.id.au>,
	Paul Holzinger <pholzing@redhat.com>,
	Laurent Vivier <lvivier@redhat.com>
Subject: Re: [PATCH 0/3] DNS forwarding: follow nameserver changes in passt mode too
Date: Fri, 04 Dec 2026 23:31:27 +0100 (CET)	[thread overview]
Message-ID: <20261204233126.2e0626c1@elisabeth> (raw)
In-Reply-To: <20261204073119.31027-1-adityamerchant08@gmail.com>

On Fri,  4 Dec 2026 13:01:16 +0530
Aditya Merchant <adityamerchant08@gmail.com> wrote:

> 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.

I just did, it all works as expected.

> 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

Applied, thanks, great stuff as usual.

-- 
Stefano

      parent reply	other threads:[~2026-12-04 22:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
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 ` Stefano Brivio [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204233126.2e0626c1@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=adityamerchant08@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=lvivier@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=pholzing@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).