tighten nstree visibility checks
Get series with b4
b4 am [email protected] change-id 20260226-work-visibility-fixes-4dcd4d6fa890Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | nsfs: tighten permission checks for ns iteration ioctlsfs/ include/ kernel/ | +21 | 0 replies | |
| 2/4 | nsfs: tighten permission checks for handle openingfs/ | +1 | 0 replies | |
| 3/4 | nstree: tighten permission checks for listingkernel/ | +4 | 0 replies | |
| 4/4 | selftests: fix mntns iteration selfteststools/ | +15 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jeff Layton |
|---|---|
| Series | R-b |
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] tighten nstree visibility checks
Listing various namespaces is currently only scoped on owning namespace. We can make this more fine-grained so that we scope visibility even tighter. To make it possible to change behavior restrict visibility for now. This shouldn't be a big deal as there aren't actual large users out there and paves the way to make this even cleaner in the future.
---
Christian Brauner (4):
nsfs: tighten permission checks for ns iteration ioctls
nsfs: tighten permission checks for handle opening
nstree: tighten permission checks for listing
selftests: fix mntns iteration selftests
fs/nsfs.c | 15 ++++++++++- include/linux/ns_common.h | 2 ++ kernel/nscommon.c | 6 +++++ kernel/nstree.c | 29 +++------------------- .../selftests/filesystems/nsfs/iterate_mntns.c | 25 +++++++++++-------- 5 files changed, 41 insertions(+), 36 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260226-work-visibility-fixes-4dcd4d6fa890