Expand description
fs-verity integration for tamper-evident snapshot sealing. fs-verity integration for tamper-evident snapshot sealing.
Provides FS_IOC_ENABLE_VERITY ioctl wrapper to seal files with a
kernel-enforced Merkle tree. Once sealed, any modification to the file
causes reads to return EIO. Works on XFS (kernel 6.12+) and btrfs.
Structs§
- Seal
Stats - Statistics from a batch seal operation.
Enums§
- FsVerity
Error - Errors from fs-verity operations.
Constants§
- FS_
VERITY_ HASH_ ALG_ SHA256 - fs-verity hash algorithms (from linux/fsverity.h)
- FS_
VERITY_ HASH_ ALG_ SHA512
Functions§
- is_
verity_ enabled - Check if a file has fs-verity enabled.
- parse_
algorithm - Parse a hash algorithm name to its kernel constant.
- seal_
snapshot_ directory - Seal all files in a directory tree with fs-verity.
- seal_
with_ fsverity - Seal a file with fs-verity.