From: Mimi Zohar <zohar@linux.ibm.com>
To: Matthew Garrett <mjg59@google.com>
Cc: linux-integrity <linux-integrity@vger.kernel.org>,
David Howells <dhowells@redhat.com>,
Dmitry Kasatkin <dmitry.kasatkin@gmail.com>
Subject: Re: [RFC] kexec: Allow kexec_file() with appropriate IMA policy when locked down
Date: Thu, 14 Mar 2019 19:58:49 -0400 [thread overview]
Message-ID: <1552607929.8658.54.camel@linux.ibm.com> (raw)
In-Reply-To: <CACdnJuuySXLON5=m9VCqAsv+-wQnZQKRi0=SRpbTiRbhuCOq4g@mail.gmail.com>
On Thu, 2019-03-14 at 15:54 -0700, Matthew Garrett wrote:
> On Thu, Mar 14, 2019 at 3:31 PM Mimi Zohar <zohar@linux.ibm.com> wrote:
> >
> > On Thu, 2019-03-14 at 14:08 -0700, Matthew Garrett wrote:
> > > On Wed, Mar 13, 2019 at 6:08 PM Mimi Zohar <zohar@linux.ibm.com> wrote:
> > > > The IMA hash and EVM hmac combination is fine for offline protection.
> > > > It's used for mutable files. For immutable files, there must be
> > > > either an IMA or EVM signature.
> > >
> > > Ok. Is the correct way to handle this to check that the file has a
> > > signature, or to extend IMA policy to allow it to provide a
> > > requirement that EVM verify a signature rather than an HMAC and have
> > > the arch policy set that?
> >
> > I'm not sure what you mean by "check that the file has a signature".
>
> Call getxattr(XATTR_SECURITY_EVM) and parse the type to determine
> whether it's an hmac or a signature.
The other option is preferable.
>
> > EVM and IMA are separate subsystems with a defined interface for
> > interaction between them. evm_verifyxattr() isn't, but could be called
> > by LSMs. So evm_verifyxattr() would need to be extended to return the
> > EVM xattr type. The IMA policy could then require a specific evmxattr
> > type. Possible.
>
> I'd been thinking of doing it the other way (ie, pass the set of
> permitted EVM xattr types to evm_verifyxattr()), but yes.
Just as IMA decides how it wants to handle "no xattrs", let IMA decide
how it wants to handle the different EVM xattr types.
>
> > Perhaps for now require IMA signatures and defer supporting EVM
> > signatures?
>
> If that's sufficient for you, happy to do that.
Definitely
Mimi
next prev parent reply other threads:[~2019-03-14 23:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-12 19:57 [RFC] kexec: Allow kexec_file() with appropriate IMA policy when locked down Matthew Garrett
2019-03-13 11:58 ` Mimi Zohar
2019-03-13 20:36 ` Matthew Garrett
2019-03-13 21:29 ` Mimi Zohar
2019-03-13 21:59 ` Matthew Garrett
2019-03-14 1:08 ` Mimi Zohar
2019-03-14 21:08 ` Matthew Garrett
2019-03-14 22:31 ` Mimi Zohar
2019-03-14 22:54 ` Matthew Garrett
2019-03-14 23:58 ` Mimi Zohar [this message]
2019-03-15 22:03 ` Matthew Garrett
2019-03-17 11:39 ` Mimi Zohar
2019-03-17 11:39 ` Mimi Zohar
2019-03-18 19:51 ` Matthew Garrett
2019-03-18 19:51 ` Matthew Garrett
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=1552607929.8658.54.camel@linux.ibm.com \
--to=zohar@linux.ibm.com \
--cc=dhowells@redhat.com \
--cc=dmitry.kasatkin@gmail.com \
--cc=linux-integrity@vger.kernel.org \
--cc=mjg59@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.