]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: Don't follow /etc/resolv.conf symlinks
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 24 Apr 2023 09:54:50 +0000 (11:54 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 24 Apr 2023 16:14:12 +0000 (18:14 +0200)
commitd404c8d887dfdd06c91409d06b695f2c502e4a41
treeeafb2828b795eb1eb980280e81283c39d378504a
parent33054db730fb6f2fd6221d38a788e30b95525463
nspawn: Don't follow /etc/resolv.conf symlinks

When we're checking if /etc/resolv.conf exists so we can bind mount
on top of it, we care about whether the symlink itself exists if
/etc/resolv.conf exists and not the file it points to, so add
CHASE_NOFOLLOW to make sure we check existence of the symlink and
not the file it points to.
src/nspawn/nspawn.c