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.133.124]) by passt.top (Postfix) with ESMTPS id 4B75D5A0269 for ; Thu, 19 Nov 2026 01:21:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795047705; 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=mRdMQLs7dKWZBngDU+ubdKKZD22pOg0eX4NmjE7Td8c=; b=PPfOw3s8A+AvWA+xjGOrCfPSFqaV6BB1Wx5x79k6bvT2jQ/T6puMNm4zuNPrisnuoSEL8j q3YolmuaMHKhoA5Eg3eIk0JuTfm0ScMiY/SYz39tAY2b9ZzC6tNWzYrduIVPShxVSHqOD3 9DXrjoI47oIejhSf+jIh/gIsoLocWHs= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-240-ZE936AWYNWaSiCHFxjWgTA-1; Wed, 18 Nov 2026 19:21:43 -0500 X-MC-Unique: ZE936AWYNWaSiCHFxjWgTA-1 X-Mimecast-MFC-AGG-ID: ZE936AWYNWaSiCHFxjWgTA_1795047703 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4a204f135ffso8824545e9.1 for ; Wed, 18 Nov 2026 16:21:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795047702; x=1795652502; 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-id :reply-to:content-type; bh=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:eb9b with SMTP id 5b1f17b1804b1-4bb7da1272cmr84493735e9.8.1795047702408; Wed, 18 Nov 2026 16:21:42 -0800 (PST) X-Received: by 2002:a05:600c:3107:b0:4ba:eb:eb9b with SMTP id 5b1f17b1804b1-4bb7da1272cmr84493435e9.8.1795047701827; Wed, 18 Nov 2026 16:21:41 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8450fa2csm9356745e9.7.2026.11.18.16.21.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 16:21:40 -0800 (PST) From: Stefano Brivio To: Aditya Merchant Subject: Re: [PATCH v2 0/2] Follow changes to the host nameserver for DNS forwarding Message-ID: <20261119012139.5772ae34@elisabeth> In-Reply-To: <20261113112114.38764-1-adityamerchant08@gmail.com> References: <20261113112114.38764-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: Thu, 19 Nov 2026 01:21:40 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: LL1OmHV1T4FEwu5kspnEGHGlnukywxxkV_IUfVYt5ig_1795047703 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: C2WUPQ2SJ5MXKVCJGHBPXXH5DJEHHFDF X-Message-ID-Hash: C2WUPQ2SJ5MXKVCJGHBPXXH5DJEHHFDF 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, 13 Nov 2026 16:51:12 +0530 Aditya Merchant wrote: > Patch 1/2 is v2 of "conf: Follow changes to the host nameserver used for > DNS forwarding", reworked after Stefano's review. Patch 2/2 terminates > the inotify buffer in pasta_netns_quit_inotify_handler() as well, as > also pointed out there. > > v2: > - Only follow a file called resolv.conf, or a link to one, and never > open anything else through the copy of its directory: the name is now > fixed, not kept in struct ctx (Stefano) > - Don't follow changes if we can't make the copy read-only, which needs > Linux 5.12, instead of going on with a writable copy (Stefano) > - Never copy the root directory, if resolv.conf turns out to be there > - Terminate the inotify buffer, and stop at the first relevant event or > at an overflow (Stefano) > - SELinux: allow watching /etc, and the directories NetworkManager and > systemd-resolved use under /run (Stefano) > - AppArmor: a single rule for the locations under /run, as we don't > follow stub-resolv.conf anymore > - Add test/pasta_options/dns_host_follow (Stefano) > - Rebase on current master Thanks for following up Aditya, the whole series looks great to me as well. I just need to try out things with SELinux, and I'd also like to test a couple of possible corner cases with Podman that came to my mind, then we can finally merge this. -- Stefano