On Fri, 13 Nov 2026 16:51:12 +0530
Aditya Merchant
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