containers / composefs

a file system for mounting container images
GNU General Public License v2.0
421 stars 29 forks source link

lib: two new fsverity APIs #285

Closed cgwalters closed 3 months ago

cgwalters commented 3 months ago

Add API+CLI to get fsverity digests efficiently

Signed-off-by: Colin Walters walters@verbum.org


lib: Add a thin public API wrapper for FS_IOC_ENABLE_VERITY

The main thing is this helps ensure that other external software using the library uses the same fsverity parameters. There's also the aspect that using ioctl() from some non-C languages is tricky.

Signed-off-by: Colin Walters walters@verbum.org


alexlarsson commented 3 months ago

Do we possibly want to be able to do the measurement computation in parallel for multiple files?

cgwalters commented 3 months ago

Do we possibly want to be able to do the measurement computation in parallel for multiple files?

That's easy to do though in e.g. Rust where there's tons of tooling for that.

cgwalters commented 3 months ago

I extended this with another small patch too to add a wrapper for the enable ioctl.