diff options
author | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2021-07-15 17:11:06 +0900 |
---|---|---|
committer | Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> | 2021-07-15 17:25:09 +0900 |
commit | e73d4829900c4ef47ffca4be306ef84b944aa9c2 (patch) | |
tree | a796dc3225927ef4c11ca4cbd320cc071946bff9 /cmd/podman/system/reset.go | |
parent | 9d98f56a64852d3bf9d3b27ad6e1ac3e3ebb6622 (diff) | |
download | podman-e73d4829900c4ef47ffca4be306ef84b944aa9c2.tar.gz podman-e73d4829900c4ef47ffca4be306ef84b944aa9c2.tar.bz2 podman-e73d4829900c4ef47ffca4be306ef84b944aa9c2.zip |
CNI-in-slirp4netns: fix bind-mount for /run/systemd/resolve/stub-resolv.conf
Fix issue 10929 : `[Regression in 3.2.0] CNI-in-slirp4netns DNS gets broken when running a rootful container after running a rootless container`
When /etc/resolv.conf on the host is a symlink to /run/systemd/resolve/stub-resolv.conf,
we have to mount an empty filesystem on /run/systemd/resolve in the child namespace,
so as to isolate the directory from the host mount namespace.
Otherwise our bind-mount for /run/systemd/resolve/stub-resolv.conf is unmounted
when systemd-resolved unlinks and recreates /run/systemd/resolve/stub-resolv.conf on the host.
[NO TESTS NEEDED]
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Diffstat (limited to 'cmd/podman/system/reset.go')
0 files changed, 0 insertions, 0 deletions