Skip to content

statx: expose the fs-verity bit

Eric Biggers linux-api linux-ext4 linux-f2fs-devel linux-fscrypt linux-fsdevel linux-man 1 version Applied

Status from this message: Applied to fscrypt.git#fsverity for 5.5.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4statx: define STATX_ATTR_VERITYinclude/linux/stat.h include/uapi/linux/stat.h+3 -210 replies
2/4ext4: support STATX_ATTR_VERITYfs/ext4/inode.c+4 -11 reply
3/4f2fs: support STATX_ATTR_VERITYfs/f2fs/file.c+4 -10 replies
4/4docs: fs-verity: mention statx() supportDocumentation/filesystems/fsverity.rst+8 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchAndreas DilgerDarrick J. Wong
1/4R-b A-b
2/4R-b
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] statx: expose the fs-verity bit

This patchset exposes the verity bit (a.k.a. FS_VERITY_FL) via statx().

This is useful because it allows applications to check whether a file is a verity file without opening it. Opening a verity file can be expensive because the fsverity_info is set up on open, which involves parsing metadata and optionally verifying a cryptographic signature.

This is analogous to how various other bits are exposed through both FS_IOC_GETFLAGS and statx(), e.g. the encrypt bit.

This patchset applies to v5.4-rc5.

Eric Biggers (4):
statx: define STATX_ATTR_VERITY
ext4: support STATX_ATTR_VERITY
f2fs: support STATX_ATTR_VERITY
docs: fs-verity: mention statx() support

 Documentation/filesystems/fsverity.rst | 8 ++++++++
 fs/ext4/inode.c                        | 5 ++++-
 fs/f2fs/file.c                         | 5 ++++-
 include/linux/stat.h                   | 3 ++-
 include/uapi/linux/stat.h              | 2 +-
 5 files changed, 19 insertions(+), 4 deletions(-)
Signature · 1 line
2.24.0.rc1.363.gb1bccd3e3d-goog