diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-08-02 20:00:45 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-08-10 09:35:54 +0200 |
| commit | d64ba78b749ad6bae0e9a6f40614eda1c7db2f04 (patch) | |
| tree | 15e7026ec194c341c3c376a85601ff4690e77bda /tools/perf/scripts/python/task-analyzer.py | |
| parent | 79fdf39f1a31f88cb3833b6f8091fbf6acdca2c6 (diff) | |
selftests/filesystems: test completing a context from another user namespace
fsopen() records the caller's user namespace in fc->user_ns and hands
back an ordinary file descriptor, so the task that issues
FSCONFIG_CMD_CREATE need not be the one that created the context.
mount_capable() authorizes that for a caller holding CAP_SYS_ADMIN in an
ancestor of fc->user_ns, which any unprivileged user has over a user
namespace it just created.
binfmt_misc and overlayfs used to WARN_ON() the mismatch. Add a test for
both. Also cover the handover within one user namespace. That is a
supported thing to do and has to keep working.
Link: https://patch.msgid.link/20260802-work-fill_super-warn-v1-3-4e987911a39a@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
