Expand description
Low-level ioctl interfaces for fs-verity kernel operations.
This module provides safe wrappers around the Linux fs-verity ioctls for enabling and measuring fs-verity on files, handling the conversion between kernel and userspace data structures.
Re-exportsยง
pub use super::EnableVerityError;pub use super::FsVerityHashValue;pub use super::MeasureVerityError;
Structsยง
- FsVerity
Digest ๐ - Core definition of a fsverity digest.
- FsVerity
Enable ๐Arg
Constantsยง
- FS_
IOC_ ๐ENABLE_ VERITY - FS_
IOC_ ๐MEASURE_ VERITY
Functionsยง
- fs_
ioc_ ๐enable_ verity - Enable fsverity on the target file. This is a thin safe wrapper for the underlying base
ioctland hence all constraints apply such as requiring the file descriptor to already beO_RDONLYetc. - fs_
ioc_ ๐measure_ verity - Measure the fsverity digest of the provided file descriptor.