Files
containerd/pkg/cri/sbserver
Marat Radchenko d94a789d15 Fix usages of mountinfo.PrefixFilter
It says: The prefix path **must be absolute, have all symlinks resolved, and cleaned**. But those requirements are violated in lots of places.

What happens when it is given a non-canonicalized path is that `mountinfo.GetMounts` will not find mounts.

The trivial case is:
```
$ mkdir a && ln -s a b && mkdir b/c b/d && mount --bind b/c b/d && cat /proc/mounts | grep -- '[ab]/d'
/dev/sdd3 /home/user/a/d ext4 rw,noatime,discard 0 0
```
We asked to bind-mount b/c to b/d, but ended up with mount in a/d.
So, mount table always contains canonicalized mount points, and it is an error to look for non-canonicalized paths in it.

Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
2023-09-10 15:14:26 +03:00
..
2023-05-05 11:54:14 -07:00
2023-05-05 11:54:14 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2023-03-03 17:51:03 +08:00
2022-07-13 10:54:59 -07:00
2023-05-05 11:54:14 -07:00
2023-05-05 11:54:14 -07:00
2023-06-10 13:49:06 +02:00
2023-08-09 09:56:26 +08:00
2023-05-05 11:54:14 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2023-05-30 16:40:58 -07:00
2023-05-05 11:54:14 -07:00
2023-03-28 20:37:26 -07:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2023-03-28 20:37:26 -07:00
2023-03-16 17:48:49 +08:00