Re: [PATCH 07/27] kexec_file: Disable at runtime if securelevel has been set

From: Mimi Zohar
Date: Mon Oct 30 2017 - 08:01:57 EST


On Mon, 2017-10-30 at 09:00 +0000, David Howells wrote:
> Mimi Zohar <zohar@xxxxxxxxxxxxxxxxxx> wrote:
>
> > Yes, that works. ÂThanks! ÂRemember is_ima_appraise_enabled() is
> > dependent on the "ima: require secure_boot rules in lockdown mode"
> > patch -Âhttp://kernsec.org/pipermail/linux-security-module-archive/201
> > 7-October/003910.html.
>
> What happens if the file in question is being accessed from a filesystem that
> doesn't have xattrs and doesn't provide support for appraisal? Is it rejected
> outright or just permitted?

IMA-appraisal returns -EACCES for any error, including lack of xattr
support.

Thiago Bauermann posted the "Appended signatures support for IMA
appraisal" patch set. ÂThis patch set allows the current kernel module
appended signature format to be used for verifying the kernel image.
ÂOnce that patch set is upstreamed, we'll be able to update the IMA
"secure_boot" policy to permit appended signatures.

Mimi