Skip to content

tighten nstree visibility checks

Christian Brauner linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected] change-id 20260226-work-visibility-fixes-4dcd4d6fa890

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nsfs: tighten permission checks for ns iteration ioctlsfs/nsfs.c include/linux/ns_common.h kernel/nscommon.c+21 -00 replies
2/4nsfs: tighten permission checks for handle openingfs/nsfs.c+1 -10 replies
3/4nstree: tighten permission checks for listingkernel/nstree.c+4 -250 replies
4/4selftests: fix mntns iteration selfteststools/testing/selftests/filesystems/nsfs/iterate_mntns.c+15 -100 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.

PatchJeff Layton
SeriesR-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.

Read the v1 thread

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