diff options
| author | Natasha Klaus <natalie.klaus@runtimeverification.com> | 2026-09-30 14:28:54 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-10-12 11:01:20 +0200 |
| commit | 8b7b7739ea6a8797391189c6d07897584b611f7f (patch) | |
| tree | b0507ff47c3317e4855d0f5631c610a93f1b6c7b /tools/lib/python/kdoc/python_version.py | |
| parent | 09a71b58a25d8166b6aed491c87d3c1e4425c702 (diff) | |
| download | linux-next-8b7b7739ea6a8797391189c6d07897584b611f7f.tar.gz linux-next-8b7b7739ea6a8797391189c6d07897584b611f7f.zip | |
selftests/namespaces: add uid_map/gid_map range tests
Check that a uid_map or gid_map line with a value that does not fit in
u32, or with a negative value, is rejected with EINVAL and installs
nothing, for each of the three fields.
Check that in-range lines are still accepted and read back unchanged:
a plain single-id mapping, first id 0, the largest valid first id
4294967294, and a line with extra spaces between the fields. When run
as root in the initial user namespace, also check that the largest
count, "0 0 4294967295", is accepted when written by the parent into
the uid_map of a child namespace; an unprivileged writer can only map
a single id.
Signed-off-by: Natasha Klaus <natalie.klaus@runtimeverification.com>
Link: https://patch.msgid.link/20260930112854.373184-3-natalie.klaus@runtimeverification.com
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
