“0a4081641d722d3dee140505a86330ecf44db0fe”上不存在“arch/powerpc/git@gitcode.net:openanolis/cloud-kernel.git”
dm: Add verity helpers for LoadPin
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: NMatthias Kaehlcke <mka@chromium.org> Acked-by: NMike Snitzer <snitzer@kernel.org> Link: https://lore.kernel.org/lkml/20220627083512.v7.1.I3e928575a23481121e73286874c4c2bdb403355d@changeidSigned-off-by: NKees Cook <keescook@chromium.org>
Showing
drivers/md/dm-verity-loadpin.c
0 → 100644
include/linux/dm-verity-loadpin.h
0 → 100644
想要评论请 注册 或 登录