cert update procedure with insert-sys-cert
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): 20210407162534.GA3981976@zorba
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 26 lines · Mimi Zohar
[Cc'ing Nayna Jain, George Wilson]
Hi Daniel,
Quoted 13 lines · Daniel Walker
Hi,
I was wondering about the practical use of this insert-sys-cert. How is the compressed kernel re-made ? You submitted this change,
https://patchwork.kernel.org/project/linux-security-module/patch/[email protected]/
for re-assemble a bzImage for x86. Is it the case that the bzImage can not be re-assembled by using the make system ?
Cisco is similar to IBM in that we internally distribute a binary SDK with a kernel. The actual build tree is only saved in a partial form.
Quoted 7 lines
We currently use the above commit to insert a certificate for x86, however, I've found that other architecture are more complex than x86. For example , powerpc images maybe not have ELF headers.
I'm wondering what values does the insert-sys-cert have without the bzImage commit ? Am I using it wrong, and there's a way to use the make system to reassemble ?
Quoted 8 lines
On powerpc, the kernel image is signed with an appended signature, using the same format as kernel modules.
scripts/sign-file.ccan be used to append the kernel image signature. Verifying the kernel image is limited on powerpc tokexec_file_loadsyscall.The
CONFIG_IMA_ARCH_POLICYloads architecture specific rules. With secure boot enabled on powerpc, it loads a policy requiring the kernel image to be signed.
There is no way to insert new certificates with the insert-sys-cert tool ? Or maybe I'm not understanding your comments.
Daniel