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-09-05 06:52:29 -07:00
2023-09-10 15:14:26 +03:00
2023-05-05 11:54:14 -07:00
2023-02-10 08:21:34 +08:00
2023-05-05 11:54:14 -07:00
2022-07-13 10:54:59 -07:00
2022-09-22 07:24:48 +00:00
2023-05-11 12:32:24 -07:00
2023-07-11 15:15:22 +02:00
2023-01-12 17:00:40 -08:00
2023-07-11 15:15:22 +02:00
2023-07-31 12:33:54 +02:00
2023-04-16 15:22:13 +08:00
2023-08-23 10:10:56 +02:00
2023-07-31 12:33:54 +02:00
2022-12-08 19:31:36 +00:00
2022-07-13 10:54:59 -07:00
2023-03-03 00:21:55 +08:00
2023-03-03 17:51:03 +08:00
2023-04-16 15:22:13 +08:00
2022-07-13 10:54:59 -07:00
2022-07-13 10:54:59 -07:00
2023-04-16 15:22:13 +08:00
2023-05-05 11:54:14 -07:00
2023-04-16 15:22:13 +08:00
2023-05-05 11:54:14 -07:00
2023-07-07 14:51:04 +08:00
2023-08-09 11:56:45 -07:00
2023-05-23 01:32:36 -07:00
2023-04-16 15:22:13 +08:00
2023-03-28 20:37:26 -07:00
2023-04-16 15:22:13 +08:00
2023-03-28 20:37:26 -07:00
2023-04-16 15:22:13 +08:00
2022-07-13 10:54:59 -07:00
2022-12-29 14:25:14 +08:00
2022-07-13 10:54:59 -07:00
2023-06-10 13:49:06 +02:00
2023-06-10 13:49:06 +02:00
2023-08-11 17:43:51 +08:00
2022-12-29 14:25:14 +08:00
2023-09-10 15:14:26 +03:00
2023-01-11 13:12:25 -08:00
2023-06-19 16:11:36 +03:00
2023-02-11 00:15:48 +03:00
2023-06-23 05:42:44 -07:00
2023-08-23 16:43:02 +02:00
2022-11-18 21:13:34 +00:00
2022-11-18 21:13:34 +00:00
2023-08-09 09:56:26 +08:00
2023-02-13 22:08:18 +02:00
2023-02-13 22:08:18 +02:00
2023-02-13 22:08:18 +02:00
2023-01-11 13:12:25 -08:00
2023-05-05 11:54:14 -07:00
2023-08-31 10:07:07 -07:00
2023-09-01 12:10:55 +02:00
2023-09-01 12:10:55 +02:00
2023-07-28 13:50:43 +03:00
2023-07-28 13:50:43 +03:00
2023-04-16 15:22:13 +08:00
2022-07-13 10:54:59 -07:00
2023-02-08 14:10:34 +08:00
2022-12-29 14:25:14 +08: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-04-16 15:22:13 +08:00
2023-08-23 13:13:51 +08:00
2023-07-12 09:57:14 -07:00
2023-08-20 17:59:45 -07:00
2023-03-03 14:37:39 -08:00
2023-08-15 16:48:22 -07:00
2023-08-15 16:48:22 -07:00
2023-03-03 14:37:39 -08:00
2023-04-16 15:22:13 +08:00
2023-04-10 04:39:50 -07:00
2023-04-16 15:22:13 +08:00
2023-02-13 22:08:18 +02:00
2023-05-05 11:54:14 -07:00
2023-03-15 20:01:17 -07:00
2023-03-28 20:37:26 -07:00
2023-03-15 20:01:17 -07:00
2023-06-10 13:24:43 +02:00
2022-07-13 10:54:59 -07:00
2023-04-16 15:22:13 +08:00
2022-07-13 10:54:59 -07:00
2023-03-28 20:37:26 -07:00
2023-04-16 15:22:13 +08:00
2023-06-02 16:56:34 -07:00
2023-03-16 17:48:49 +08:00