public inbox for linux-unionfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] ovl: Add support for fs-verity checking of lowerdata
@ 2023-04-20  7:43 Alexander Larsson
  2023-04-20  7:44 ` [PATCH 1/6] fsverity: Export fsverity_get_digest Alexander Larsson
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Alexander Larsson @ 2023-04-20  7:43 UTC (permalink / raw)
  To: miklos
  Cc: linux-unionfs, amir73il, ebiggers, tytso, fsverity,
	Alexander Larsson

This patchset adds support for using fs-verity to validate lowerdata
files by specifying an overlay.verity xattr on the metacopy
files.

This is primarily motivated by the Composefs usecase, where there will
be a read-only EROFS layer that contains redirect into a base data
layer which has fs-verity enabled on all files. However, it is also
useful in general if you want to ensure that the lowerdata files
matches the expected content over time.

This patch series is based on the lazy lowerdata patch series by Amir[1].

I have also added some tests for this feature to xfstests[2].

I'm also CC:ing the fsverity list and maintainers because there is one
(tiny) fsverity change, and there may be interest in this usecase.

[1] https://lore.kernel.org/linux-unionfs/20230412135412.1684197-1-amir73il@gmail.com/T/#m1bc31eb75dc9dd22204b8f0cfc67bad9b6c785a7
[2] https://github.com/alexlarsson/xfstests/commits/verity-tests

Alexander Larsson (6):
  fsverity: Export fsverity_get_digest
  ovl: Break out ovl_entry_path_real() from ovl_i_path_real()
  ovl: Break out ovl_entry_path_lowerdata() from ovl_path_lowerdata()
  ovl: Add framework for verity support
  ovl: Validate verity xattr when resolving lowerdata
  ovl: Handle verity during copy-up

 Documentation/filesystems/overlayfs.rst |  33 +++++
 fs/overlayfs/Kconfig                    |  14 ++
 fs/overlayfs/copy_up.c                  |  27 ++++
 fs/overlayfs/namei.c                    |  34 +++++
 fs/overlayfs/overlayfs.h                |  11 ++
 fs/overlayfs/ovl_entry.h                |   4 +
 fs/overlayfs/super.c                    |  49 +++++++
 fs/overlayfs/util.c                     | 167 ++++++++++++++++++++++--
 fs/verity/measure.c                     |   1 +
 9 files changed, 332 insertions(+), 8 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-04-27 17:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20  7:43 [PATCH 0/6] ovl: Add support for fs-verity checking of lowerdata Alexander Larsson
2023-04-20  7:44 ` [PATCH 1/6] fsverity: Export fsverity_get_digest Alexander Larsson
2023-04-20  7:44 ` [PATCH 2/6] ovl: Break out ovl_entry_path_real() from ovl_i_path_real() Alexander Larsson
2023-04-20 12:12   ` Amir Goldstein
2023-04-20  7:44 ` [PATCH 3/6] ovl: Break out ovl_entry_path_lowerdata() from ovl_path_lowerdata() Alexander Larsson
2023-04-20 12:14   ` Amir Goldstein
2023-04-20  7:44 ` [PATCH 4/6] ovl: Add framework for verity support Alexander Larsson
2023-04-20  8:39   ` Amir Goldstein
2023-04-25 11:19   ` Miklos Szeredi
2023-04-25 13:33     ` Alexander Larsson
2023-04-25 19:07       ` Miklos Szeredi
2023-04-20  7:44 ` [PATCH 5/6] ovl: Validate verity xattr when resolving lowerdata Alexander Larsson
2023-04-20 12:06   ` Amir Goldstein
2023-04-27  7:33     ` Alexander Larsson
2023-04-26 21:47   ` Eric Biggers
2023-04-27  7:22     ` Alexander Larsson
2023-04-27 17:58       ` Eric Biggers
2023-04-20  7:44 ` [PATCH 6/6] ovl: Handle verity during copy-up Alexander Larsson
2023-04-20 12:17   ` Amir Goldstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox