moby/plugin
Akihiro Suda 762ec4b60c
plugin: fix mounting /etc/hosts when running in UserNS
Fix `error mounting "/etc/hosts" to rootfs at "/etc/hosts": mount
/etc/hosts:/etc/hosts (via /proc/self/fd/6), flags: 0x5021: operation
not permitted`.

This error was introduced in 7d08d84b03
(`dockerd-rootless.sh: set rootlesskit --state-dir=DIR`) that changed
the filesystem of the state dir from /tmp to /run (in a typical setup).

Fix issue 47248

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-03-15 22:16:34 +09:00
..
executor/containerd libcontainerd: create unstarted tasks 2024-01-10 13:50:26 -05:00
v2 plugin: fix mounting /etc/hosts when running in UserNS 2024-03-15 22:16:34 +09:00
backend_linux.go api/types: move Plugin-types to api/types/backend 2023-12-06 02:16:02 +01:00
backend_linux_test.go plugin: format code with gofumpt 2023-06-29 00:31:50 +02:00
backend_unsupported.go api/types: move Plugin-types to api/types/backend 2023-12-06 02:16:02 +01:00
defs.go plugin: use strings.Cut() 2022-12-21 11:09:02 +01:00
errors.go Use GetBoolOrDefault to remove duplicated invalidFilter usages 2023-01-26 16:28:53 +01:00
events.go Add canonical import comment 2018-02-05 16:51:57 -05:00
fetch_linux.go plugins: fix panic installing from repo w/ digest 2024-02-04 20:23:06 +00:00
manager.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
manager_linux.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
manager_linux_test.go api/types: move Plugin-types to api/types/backend 2023-12-06 02:16:02 +01:00
manager_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
manager_windows.go Do not call mount.RecursiveUnmount() on Windows 2020-10-29 23:00:16 +01:00
progress.go Use containerd dist libs for plugin pull/pull 2020-04-02 15:03:06 -07:00
registry.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
store.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
store_test.go goimports: fix imports 2019-09-18 12:56:54 +02:00