Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk
From: Mimi Zohar
Date: Thu May 16 2019 - 09:33:53 EST
On Thu, 2019-05-16 at 01:29 -0400, Arvind Sankar wrote:
> I think that's a separate issue. If you want to allow people to be able
> to put files onto the system that will be IMA verified, they need to
> have some way to locally sign them whether it's inside an initramfs or
> on a real root filesystem.
Anyone building their own kernel can build their own key into the
kernel image. ÂAnother option is to build the kernel with Â
CONFIG_SYSTEM_EXTRA_CERTIFICATE enabled, allowing an additional
certificate to be inserted into the kernel image post build. ÂThe
additional certificate will be loaded onto the builtin kernel keyring.
ÂCertificates signed with the private key can then be added to the IMA
keyring. ÂBy modifying the kernel image, the kernel image obviously
needs to be resigned. ÂAdditional patches "Certificate insertion
support for x86 bzImages" were posted, but have not been upstreamed.
This patch set adds the security xattrs needed by IMA.
Mimi
Â