Module ioctl

Module ioctl 

Source
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ยง

FsVerityDigest ๐Ÿ”’
Core definition of a fsverity digest.
FsVerityEnableArg ๐Ÿ”’

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 ioctl and hence all constraints apply such as requiring the file descriptor to already be O_RDONLY etc.
fs_ioc_measure_verity ๐Ÿ”’
Measure the fsverity digest of the provided file descriptor.