Skip to content

filesystem visibililty ioctls

Kent Overstreet linux-btrfs linux-fsdevel linux-unionfs 2 versions – Applied

Status from this message: Applied to the vfs.uuid branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 6 repliesApplied
  2. v27 patches 23 repliesSuperseded

Changes in v3 from the cover letter

- now using nak (0x15) ioctl range; documentation updated
- new helpers for setting the sysfs name
- sysfs name uuid now has a length field

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7fs: super_set_uuid()fs/bcachefs/fs.c fs/ext4/super.c fs/f2fs/super.c +7 more+23 -101 reply
2/7overlayfs: Convert to super_set_uuid()fs/overlayfs/util.c+9 -50 replies
3/7fs: FS_IOC_GETUUIDDocumentation/userspace-api/ioctl/ioctl-number.rst fs/ioctl.c include/uapi/linux/fs.h+34 -13 replies
4/7fat: Hook up sb->s_uuidfs/fat/inode.c+3 -00 replies
5/7fs: FS_IOC_GETSYSFSNAMEfs/ioctl.c include/linux/fs.h include/uapi/linux/fs.h+70 -01 reply
6/7xfs: add support for FS_IOC_GETSYSFSNAMEfs/xfs/xfs_mount.c+2 -00 replies
7/7bcachefs: add support for FS_IOC_GETSYSFSNAMEfs/bcachefs/fs.c+1 -00 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchDave Chinner
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] filesystem visibililty ioctls

ok, any further bikeshedding better be along the lines of "this will cause a gaping security hole unless addressed" ;)

changes since v2:
- now using nak (0x15) ioctl range; documentation updated
- new helpers for setting the sysfs name
- sysfs name uuid now has a length field

other notes:
- fscrypt usage of s_uuid has justification, so we don't need to be concerned about exporting that (more) to userspace
- i haven't updated btrfs for FS_IOC_SYSFS_NAME, less familiar with their code so they are cc'd
ext4 may want this too?

Kent Overstreet (7):
fs: super_set_uuid()
overlayfs: Convert to super_set_uuid()
fs: FS_IOC_GETUUID
fat: Hook up sb->s_uuid
fs: FS_IOC_GETSYSFSNAME
xfs: add support for FS_IOC_GETSYSFSNAME
bcachefs: add support for FS_IOC_GETSYSFSNAME

 .../userspace-api/ioctl/ioctl-number.rst      |  3 +-
 fs/bcachefs/fs.c                              |  3 +-
 fs/ext4/super.c                               |  2 +-
 fs/f2fs/super.c                               |  2 +-
 fs/fat/inode.c                                |  3 ++
 fs/gfs2/ops_fstype.c                          |  2 +-
 fs/ioctl.c                                    | 33 ++++++++++++
 fs/kernfs/mount.c                             |  4 +-
 fs/ocfs2/super.c                              |  4 +-
 fs/overlayfs/util.c                           | 14 +++--
 fs/ubifs/super.c                              |  2 +-
 fs/xfs/xfs_mount.c                            |  4 +-
 include/linux/fs.h                            | 51 +++++++++++++++++++
 include/uapi/linux/fs.h                       | 27 ++++++++++
 mm/shmem.c                                    |  4 +-
 15 files changed, 142 insertions(+), 16 deletions(-)
Signature · 1 line
2.43.0