diff options
| author | Kir Kolyshkin <kolyshkin@gmail.com> | 2026-10-06 23:23:57 -0700 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-10-12 11:33:19 +0200 |
| commit | e6e54e7117f6eee4ae42c9c24d95a1eb775bdbeb (patch) | |
| tree | 024b08feccc50834703d3e50082262234f8f812d /include/uapi/linux | |
| parent | 73b40395c71c510b82fd6104416ecde1e5ac6418 (diff) | |
| download | linux-next-e6e54e7117f6eee4ae42c9c24d95a1eb775bdbeb.tar.gz linux-next-e6e54e7117f6eee4ae42c9c24d95a1eb775bdbeb.zip | |
selftests/filesystems: test OPEN_TREE_DROP_MNTNS_MOUNTS
Pin a mount namespace below a tmpfs mount, the way snapd does under
/run/snapd/ns, and attach a recursive clone of that tmpfs inside a
younger mount namespace created with OPEN_TREE_NAMESPACE. Without
OPEN_TREE_DROP_MNTNS_MOUNTS move_mount(2) fails with ELOOP; with it,
it succeeds.
Also check that the flag is rejected without OPEN_TREE_CLONE or
OPEN_TREE_NAMESPACE, and accepted with the latter.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Link: https://patch.msgid.link/20261006-nsfs-prune-rfc-v3-2-adb97ea52868@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
