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

Mike Snitzer snitzer at kernel.org
Wed Jul 6 15:06:58 UTC 2022


On Mon, Jun 27 2022 at 11:35P -0400,
Matthias Kaehlcke <mka at chromium.org> 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 at chromium.org>
> Acked-by: Kees Cook <keescook at chromium.org>

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



More information about the Linux-security-module-archive mailing list