summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/fsverity.rst
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-10-29 21:41:41 +0100
committerEric Biggers <ebiggers@google.com>2019-11-13 21:15:34 +0100
commit73f0ec02d670a61afcef49bc0a74d42e324276ea (patch)
treed8b852572491a50a63d3139a0466aff179d8d518 /Documentation/filesystems/fsverity.rst
parentf2fs: support STATX_ATTR_VERITY (diff)
downloadlinux-73f0ec02d670a61afcef49bc0a74d42e324276ea.tar.xz
linux-73f0ec02d670a61afcef49bc0a74d42e324276ea.zip
docs: fs-verity: mention statx() support
Document that the statx() system call can now be used to check whether a file is a verity file. Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'Documentation/filesystems/fsverity.rst')
-rw-r--r--Documentation/filesystems/fsverity.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/filesystems/fsverity.rst b/Documentation/filesystems/fsverity.rst
index dd55204c9ef8..a95536b6443c 100644
--- a/Documentation/filesystems/fsverity.rst
+++ b/Documentation/filesystems/fsverity.rst
@@ -226,6 +226,14 @@ To do so, check for FS_VERITY_FL (0x00100000) in the returned flags.
The verity flag is not settable via FS_IOC_SETFLAGS. You must use
FS_IOC_ENABLE_VERITY instead, since parameters must be provided.
+statx
+-----
+
+Since Linux v5.5, the statx() system call sets STATX_ATTR_VERITY if
+the file has fs-verity enabled. This can perform better than
+FS_IOC_GETFLAGS and FS_IOC_MEASURE_VERITY because it doesn't require
+opening the file, and opening verity files can be expensive.
+
Accessing verity files
======================