# Re: \[PATCH v7 1/3\] dm: Add verity helpers for LoadPin

- From: Mike Snitzer \<snitzer@kernel.org\>
- Date: 2022-07-06 15:07:10 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2022/07/1848971
- Thread: https://ratatoskr.run/linux-raid/2022/06/1837128/t.md

```text
On Mon, Jun 27 2022 at 11:35P -0400,
Matthias Kaehlcke [ref] wrote:

> LoadPin limits loading of kernel modules, firmware and certain
> other files to a 'pinned' file system (typically a read-only
> rootfs). To provide more flexibility LoadPin is being extended
> to also allow loading these files from trusted dm-verity
> devices. For that purpose LoadPin can be provided with a list
> of verity root digests that it should consider as trusted.
> 
> Add a bunch of helpers to allow LoadPin to check whether a DM
> device is a trusted verity device. The new functions broadly
> fall in two categories: those that need access to verity
> internals (like the root digest), and the 'glue' between
> LoadPin and verity. The new file dm-verity-loadpin.c contains
> the glue functions.
> 
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> Acked-by: Kees Cook <redacted>

Acked-by: Mike Snitzer <snitzer@kernel.org>
```
