]> www.infradead.org Git - users/dwmw2/linux.git/commit
ipe: fallback to platform keyring also if key in trusted keyring is rejected
authorLuca Boccassi <bluca@debian.org>
Fri, 27 Sep 2024 08:23:44 +0000 (10:23 +0200)
committerFan Wu <wufan@kernel.org>
Fri, 18 Oct 2024 19:14:53 +0000 (12:14 -0700)
commitf40998a8e6bbf0314b8416350183a537f9b59ca9
tree809dbfcdc3e1e76f035ad63b5a44b7d1989aa8a7
parent02e2f9aa33e461468de02e35ad977bd7233960ae
ipe: fallback to platform keyring also if key in trusted keyring is rejected

If enabled, we fallback to the platform keyring if the trusted keyring
doesn't have the key used to sign the ipe policy. But if pkcs7_verify()
rejects the key for other reasons, such as usage restrictions, we do not
fallback. Do so, following the same change in dm-verity.

Signed-off-by: Luca Boccassi <bluca@debian.org>
Suggested-by: Serge Hallyn <serge@hallyn.com>
[FW: fixed some line length issues and a typo in the commit message]
Signed-off-by: Fan Wu <wufan@kernel.org>
security/ipe/policy.c