linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Feature proposal: support file content integrity verification based on fs-verity
@ 2022-11-18  5:19 Gmail
  2022-11-29  0:44 ` Victor Hsieh
  0 siblings, 1 reply; 4+ messages in thread
From: Gmail @ 2022-11-18  5:19 UTC (permalink / raw)
  To: Eric Biggers, Miklos Szeredi, Theodore Y. Ts'o, linux-fsdevel,
	linux-fscrypt, fuse-devel

Hello fuse-devel,

The fs-verity framework provides file content integrity verification services for filesystems. Currently ext4/btrfs/f2fs has enabled support for fs-verity. Here I would like to propose implementing FUSE file content integrity verification based on fs-verity.

Our current main use case is to support integrity verification for confidential containers using virtio-fs. With the new integrity verification feature, we can ensure that files from virtio-fs are trusted and fs-verity root digests are available for remote attestation. The integrity verification feature can also be used to support other FUSE based solutions.

Fs-verity supports generating and verifying file content hash values. For the sake of simplicity, we may only support hash value verification of file content in the first stage, and enable support for hash value generation in the later stage.

The following FUSE protocol changes are therefore proposed to support fs-verity:
1) add flag “FUSE_FS_VERITY” to negotiate fs-verity support 
2) add flag “FUSE_ATTR_FSVERITY” for fuse servers to mark that inodes have associated fs-verity meta data. 
3) add op “FUSE_FSVERITY” to get/set fs-verity descriptor and hash values.

The FUSE protocol does not specify how fuse servers store fs-verity metadata. The fuse server can store fs-verity metadata in its own ways.

I did a quick prototype and the changes seems moderate, about 250 lines of code changes.

Would love to hear about your feedback:)

Thanks,
Gerry


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

end of thread, other threads:[~2022-12-01 23:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-18  5:19 Feature proposal: support file content integrity verification based on fs-verity Gmail
2022-11-29  0:44 ` Victor Hsieh
2022-12-01  9:51   ` Gerry Liu
2022-12-01 23:42     ` Victor Hsieh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).