From: Mimi Zohar <zohar@linux.vnet.ibm.com>
To: Matthew Garrett <mjg59@google.com>
Cc: linux-integrity <linux-integrity@vger.kernel.org>
Subject: Re: [PATCH V3] EVM: Allow userland to permit modification of EVM-protected metadata
Date: Fri, 03 Nov 2017 15:16:06 -0400 [thread overview]
Message-ID: <1509736566.3416.97.camel@linux.vnet.ibm.com> (raw)
In-Reply-To: <CACdnJusn8c-8GMX3iY+6xsOGu6uNKQAMr_begLLTp13_p_bdPw@mail.gmail.com>
On Fri, 2017-11-03 at 11:49 -0700, Matthew Garrett wrote:
> On Fri, Nov 3, 2017 at 9:03 AM, Mimi Zohar <zohar@linux.vnet.ibm.com> wrote:
> > On Thu, 2017-11-02 at 15:10 -0700, Matthew Garrett wrote:
> >> - 1: enable HMAC validation and creation
> >> - 2: enable digital signature validation
> >> - 3: enable HMAC and digital signature validation and HMAC
> >> - creation
> >> + Bit Effect
> >> + 0 Enable HMAC validation and creation
> >
> > The code and documentation do not seem to be in sync. Dracut is
> > currently using 1 to indicate the HMAC key has been loaded.
>
> I've changed from describing the raw values to the bits they
> correspond to, so bit 0 corresponds to a value of 1. I can switch back
> to describing the raw values instead?
Ok, bits are fine.
> >>
> >> + /* Policy permits modification of the protected attrs */
> >
> > Could we indicate that there is no HMAC key loaded.
Just as a reminder in the comment.
> In the comment, or in kernel output?
> >> + /* Don't allow a request to freshly enable metadata writes if
> >> + * keys are loaded.
> >> + */
> >> + if ((i & EVM_ALLOW_METADATA_WRITES) &&
> >> + ((evm_initialized & EVM_KEY_MASK) != 0) &&
> >> + !(evm_initialized & EVM_ALLOW_METADATA_WRITES))
> >
> > Ok, not sure that the "(evm_initialized & EVM_ALLOW_METADATA_WRITES)"
> > is needed, but it doesn't hurt.
>
> Goal here was to allow:
>
> echo 6 >evm
> echo 7 >evm
>
> t work without an error, but I guess that's not a big deal.
>
That's fine.
Thanks!
prev parent reply other threads:[~2017-11-03 19:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-02 22:10 [PATCH V3] EVM: Allow userland to permit modification of EVM-protected metadata Matthew Garrett
2017-11-03 16:03 ` Mimi Zohar
2017-11-03 18:49 ` Matthew Garrett
2017-11-03 19:16 ` Mimi Zohar [this message]
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=1509736566.3416.97.camel@linux.vnet.ibm.com \
--to=zohar@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox