History

fs-verity: support reading signature with ioctl

Add support for FS_VERITY_METADATA_TYPE_SIGNATURE to FS_IOC_READ_VERITY_METADATA. This allows a userspace server program to retrieve the built-in signature (if present) of a verity file for serving to a client which implements fs-verity compatible verification. See the patch which introduced FS_IOC_READ_VERITY_METADATA for more details. The ability for userspace to read the built-in signatures is also useful because it allows a system that is using the in-kernel signature verification to migrate to userspace signature verification. This has been tested using a new xfstest which calls this ioctl via a new subcommand for the 'fsverity' program from fsverity-utils.

Eric Biggers committed 5 years ago

Commit 07c99001 parent 947191a3 files · +39 −1Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/fsverity.h+1−0
@@ -85,6 +85,7 @@ struct fsverity_formatted_digest { · 84 unmodified lines
8585
8686 #define FS_VERITY_METADATA_TYPE_MERKLE_TREE 1
8787 #define FS_VERITY_METADATA_TYPE_DESCRIPTOR 2
88+#define FS_VERITY_METADATA_TYPE_SIGNATURE 3
8889
8990 struct fsverity_read_metadata_arg {
9091 __u64 metadata_type;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t