From: Mimi Zohar <zohar@linux.ibm.com>
To: Eric Snowberg <eric.snowberg@oracle.com>
Cc: "dmitry.kasatkin@gmail.com" <dmitry.kasatkin@gmail.com>,
"jmorris@namei.org" <jmorris@namei.org>,
"serge@hallyn.com" <serge@hallyn.com>,
"linux-integrity@vger.kernel.org"
<linux-integrity@vger.kernel.org>,
"linux-security-module@vger.kernel.org"
<linux-security-module@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] integrity: Allow ima_appraise bootparam to be set when SB is enabled
Date: Wed, 27 Apr 2022 17:21:00 -0400 [thread overview]
Message-ID: <9a9a6cb0b3f2e643a17743250f4a137baaea7a7e.camel@linux.ibm.com> (raw)
In-Reply-To: <48467663-5CD6-49C5-B43F-9FA0887D0575@oracle.com>
On Wed, 2022-04-27 at 16:12 +0000, Eric Snowberg wrote:
>
> > On Apr 26, 2022, at 12:18 PM, Mimi Zohar <zohar@linux.ibm.com> wrote:
> >
> > On Mon, 2022-04-25 at 18:21 -0400, Eric Snowberg wrote:
> >> The IMA_APPRAISE_BOOTPARM config allows enabling different "ima_appraise="
> >> modes (log, fix, enforce) to be configured at boot time. When booting
> >> with Secure Boot enabled, all modes are ignored except enforce. To use
> >> log or fix, Secure Boot must be disabled.
> >>
> >> With a policy such as:
> >>
> >> appraise func=BPRM_CHECK appraise_type=imasig
> >>
> >> A user may just want to audit signature validation. Not all users
> >> are interested in full enforcement and find the audit log appropriate
> >> for their use case.
> >>
> >> Add a new IMA_APPRAISE_SB_BOOTPARAM config allowing "ima_appraise="
> >> to work when Secure Boot is enabled.
> >>
> >> Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
> >
> > Since the IMA architecture specific policy rules were first
> > upstreamed, either enabling IMA_APPRAISE_BOOTPARAM or IMA_ARCH_POLICY
> > was permitted, but not both.
>
> I don’t see code preventing this and just created a config with both of them
> enabled. Is this an assumption everyone is supposed to understand?
This was very clear in the original patch upstreamed. Refer to the
IMA_APPRAISE_BOOTPRAM in commit d958083a8f64 ("x86/ima: define
arch_get_ima_policy() for x86"). This subsequently changed to be based
on the secureboot runtime state. Refer to commit 311aa6aafea4 ("ima:
move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime").
>
> > This Kconfig negates the assumptions on
> > which the CONFIG_IMA_ARCH_POLICY and the ima_appraise_signature() are
> > based without any indication of the ramifications. This impacts the
> > kexec file syscall lockdown LSM assumptions as well.
>
> I will fix this in the next round.
Either secureboot is or isn't enabled. When it is enabled, then IMA
must be in enforcing mode.
> > A fuller, more complete explanation for needing "log" mode when secure
> > boot is enabled is required.
>
> and add a more thorough explanation. Thanks.
Normally "log" mode is needed during development.
thanks,
Mimi
next prev parent reply other threads:[~2022-04-27 21:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-25 22:21 [PATCH] integrity: Allow ima_appraise bootparam to be set when SB is enabled Eric Snowberg
2022-04-26 18:18 ` Mimi Zohar
2022-04-27 16:12 ` Eric Snowberg
2022-04-27 21:21 ` Mimi Zohar [this message]
2022-04-28 22:08 ` Nayna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9a9a6cb0b3f2e643a17743250f4a137baaea7a7e.camel@linux.ibm.com \
--to=zohar@linux.ibm.com \
--cc=dmitry.kasatkin@gmail.com \
--cc=eric.snowberg@oracle.com \
--cc=jmorris@namei.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=serge@hallyn.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).