linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to list keys used for kexec
@ 2022-04-14 17:59 Michal Suchánek
  2022-04-26  4:10 ` Guozihua (Scott)
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Suchánek @ 2022-04-14 17:59 UTC (permalink / raw)
  To: keyrings@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-efi@vger.kernel.org, linux-security-module@vger.kernel.org

Hello,

apparently modules are verified by keys from 'secondary' keyring on all
platforms.

If you happen to know that it's this particular keyring, and know how
to list keyrings recursively you can find the keys that are used for
verifying modules.

However, for kexec we have

 - primary keyring on aarch64
 - platform keyring on s390
 - secondary AND platform keyring on x86

How is a user supposed to know which keys are used for kexec image
verification?

There is an implicit keyring that is ad-hoc constructed by the code that
does the kexec verification but there is no key list observable from
userspace that corresponds to this ad-hoc keyring only known to the kexec
code.

Can the kernel make the information which keys are used for what purpose
available to the user?

Thanks

Michal


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-27  2:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-14 17:59 How to list keys used for kexec Michal Suchánek
2022-04-26  4:10 ` Guozihua (Scott)
2022-04-26  8:52   ` Michal Suchánek
2022-04-27  2:37     ` Guozihua (Scott)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).