summaryrefslogtreecommitdiff
path: root/vendor/github.com/cyphar/filepath-securejoin/join.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-07-06 13:47:28 +0200
committerPaul Holzinger <pholzing@redhat.com>2021-07-06 18:40:03 +0200
commit2c7c679584d9c13040b5633e1d2db5847416cdea (patch)
tree53ea1550230dcbd2173647f7a7f60890a7569361 /vendor/github.com/cyphar/filepath-securejoin/join.go
parent2681484d7cc416eea6773469884451800c0a07d4 (diff)
downloadpodman-2c7c679584d9c13040b5633e1d2db5847416cdea.tar.gz
podman-2c7c679584d9c13040b5633e1d2db5847416cdea.tar.bz2
podman-2c7c679584d9c13040b5633e1d2db5847416cdea.zip
Make rootless-cni setup more robust
The rootless cni namespace needs a valid /etc/resolv.conf file. On some distros is a symlink to somewhere under /run. Because the kernel will follow the symlink before mounting, it is not possible to mount a file at exactly /etc/resolv.conf. We have to ensure that the link target will be available in the rootless cni mount ns. Fixes #10855 Also fixed a bug in the /var/lib/cni directory lookup logic. It used `filepath.Base` instead of `filepath.Dir` and thus looping infinitely. Fixes #10857 [NO TESTS NEEDED] Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'vendor/github.com/cyphar/filepath-securejoin/join.go')
0 files changed, 0 insertions, 0 deletions