From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=quarantine dis=none) header.from=redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 95DC85A0271 for ; Fri, 04 Dec 2026 23:31:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796423492; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3BA10THQKBSog+Kk6SEA+A5c9y0YDcD7b3huWajn0Oc=; b=AL7qZlWmjYZM7rY9rapzJIsl7UFz1lu32FR0QfTDWy7ZNJXOoDHX07VdYDJOGf2Er1fWHL R4cFFnYnsdh5YIifj/e9vZMBTJvI0hL6NQyukHkg8rF9zk2bC19+/n/hbnvbR5aCAmUcrq WU6N6KX98FeccbFQSsh6LcJq3vIIas0= X-MC-Rep: binary re single Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-209--ibqEpzjMMqSGAr-0ZN8wg-1; Fri, 4 Dec 2026 22:31:30 +0000 X-MC-Unique: -ibqEpzjMMqSGAr-0ZN8wg-1 X-Mimecast-MFC-AGG-ID: -ibqEpzjMMqSGAr-0ZN8wg_1796423489 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4bb6bbc025aso14076945e9.3 for ; Fri, 04 Dec 2026 14:31:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796423489; x=1797028289; h=date:content-transfer-encoding:content-type:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message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duOd X-Received: by 2002:a05:600c:628b:b0:4bb:81b2:c801 with SMTP id 5b1f17b1804b1-4bbeb8dc56amr63364245e9.20.1796423488783; Fri, 04 Dec 2026 14:31:28 -0800 (PST) X-Received: by 2002:a05:600c:628b:b0:4bb:81b2:c801 with SMTP id 5b1f17b1804b1-4bbeb8dc56amr63363735e9.20.1796423488205; Fri, 04 Dec 2026 14:31:28 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbf17de711sm9687275e9.4.2026.12.04.14.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 14:31:27 -0800 (PST) From: Stefano Brivio To: Aditya Merchant Subject: Re: [PATCH 0/3] DNS forwarding: follow nameserver changes in passt mode too Message-ID: <20261204233126.2e0626c1@elisabeth> In-Reply-To: <20261204073119.31027-1-adityamerchant08@gmail.com> References: <20261204073119.31027-1-adityamerchant08@gmail.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Fri, 04 Dec 2026 23:31:27 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: w3bROFvVsAFS9fyyjVFn6fxf31e00o1MT5cBtVP1cew_1796423489 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: ZFYOYYICQEWP7NPMVQG6WZM6K4DONQTO X-Message-ID-Hash: ZFYOYYICQEWP7NPMVQG6WZM6K4DONQTO X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top, David Gibson , Paul Holzinger , Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Fri, 4 Dec 2026 13:01:16 +0530 Aditya Merchant 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