Skip to content

Test the FS_IOC_READ_VERITY_METADATA ioctl

Eric Biggers fstests linux-fscrypt 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v1 RFC4 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Updated cover letter and removed RFC tag, now that the kernel and fsverity-utils patches have been merged.
- Added executable bit to generic/902.
- Improved some comments in common/verity.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4generic: factor out helpers for fs-verity built-in signaturescommon/verity tests/generic/577+39 -130 replies
2/4generic: add helpers for dumping fs-verity metadatacommon/verity+36 -00 replies
3/4generic: test retrieving verity Merkle tree and descriptortests/generic/901 tests/generic/901.out tests/generic/group+96 -00 replies
4/4generic: test retrieving verity signaturetests/generic/902 tests/generic/902.out tests/generic/group+74 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Test the FS_IOC_READ_VERITY_METADATA ioctl

This patchset adds tests for the FS_IOC_READ_VERITY_METADATA ioctl
(https://lkml.kernel.org/linux-fscrypt/[email protected]/T/#u).

Running these tests requires a kernel at commit f7b36dc5cb37 or later for FS_IOC_READ_VERITY_METADATA support, and fsverity-utils at commit cf8fa5e5a7ac or later for 'dump_metadata' subcommand support.

Like the other fs-verity tests, they also require an ext4 or f2fs filesystem, and CONFIG_FS_VERITY=y. The second test also requires CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y.

As usual the tests will skip themselves if the prerequisites aren't met.

Changed v1 => v2:
- Updated cover letter and removed RFC tag, now that the kernel and fsverity-utils patches have been merged.
- Added executable bit to generic/902.
- Improved some comments in common/verity.

Eric Biggers (4):
generic: factor out helpers for fs-verity built-in signatures
generic: add helpers for dumping fs-verity metadata
generic: test retrieving verity Merkle tree and descriptor
generic: test retrieving verity signature

 common/verity         | 73 ++++++++++++++++++++++++++++++++++++++-
 tests/generic/577     | 15 ++------
 tests/generic/901     | 79 +++++++++++++++++++++++++++++++++++++++++++
 tests/generic/901.out | 16 +++++++++
 tests/generic/902     | 66 ++++++++++++++++++++++++++++++++++++
 tests/generic/902.out |  7 ++++
 tests/generic/group   |  2 ++
 7 files changed, 245 insertions(+), 13 deletions(-)
 create mode 100755 tests/generic/901
 create mode 100644 tests/generic/901.out
 create mode 100644 tests/generic/902
 create mode 100644 tests/generic/902.out
Signature · 1 line
2.30.1