From: zohar@linux.vnet.ibm.com (Mimi Zohar)
To: linux-security-module@vger.kernel.org
Subject: [RFC PATCH] ima: require secure_boot rules in lockdown mode
Date: Mon, 30 Oct 2017 13:00:27 -0400 [thread overview]
Message-ID: <1509382827.3583.143.camel@linux.vnet.ibm.com> (raw)
In-Reply-To: <750.1509378910@warthog.procyon.org.uk>
On Mon, 2017-10-30 at 15:55 +0000, David Howells wrote:
> I've added this into my series as the third patch, but:
>
> Mimi Zohar <zohar@linux.vnet.ibm.com> wrote:
>
> > + ima_use_appraise_tcb = TRUE;
>
> Did you mean "true" rather than "TRUE"?
Yes, of course. ?Commit 9f4b6a254d7a "ima: Fix bool
initialization/comparison" already addresses it. ?Please remove it
from this patch.
>
> > + entry = kzalloc(sizeof(*entry), GFP_KERNEL);
> > + if (entry) {
> > + memcpy(entry, &secure_boot_rules[i],
> > + sizeof(*entry));
>
> kmemdup()?
Probably
>
> I guess also that oopsing is okay if the allocation fails. We've run out of
> memory during early boot, after all.
If the memory allocation fails, the "secure_boot" policy will not be
enabled for custom policies, but how is that "oopsing". ?If it fails,
there needs to be some indication of the failure, which there
currently isn't. ?Perhaps also prevent loading a custom policy.
>
> > + INIT_LIST_HEAD(&entry->list);
> > + list_add_tail(&entry->list, &ima_policy_rules);
>
> Isn't the init redundant, given the following line?
ok
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-10-30 17:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-23 15:59 [RFC PATCH] ima: require secure_boot rules in lockdown mode Mimi Zohar
2017-10-30 15:55 ` David Howells
2017-10-30 17:00 ` Mimi Zohar [this message]
2017-10-30 17:05 ` David Howells
2017-10-30 17:39 ` Mimi Zohar
2017-10-31 3:25 ` James Morris
2017-11-08 20:46 ` Mimi Zohar
2017-11-08 20:53 ` Stephen Rothwell
2017-11-08 21:04 ` Mimi Zohar
2017-11-08 23:26 ` Stephen Rothwell
2017-11-09 3:06 ` Mimi Zohar
2017-11-09 13:28 ` James Morris
2017-11-09 13:46 ` Mimi Zohar
2017-11-09 19:17 ` James Morris
2017-11-02 17:11 ` David Howells
2017-11-02 21:30 ` Mimi Zohar
2017-11-02 21:43 ` David Howells
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=1509382827.3583.143.camel@linux.vnet.ibm.com \
--to=zohar@linux.vnet.ibm.com \
--cc=linux-security-module@vger.kernel.org \
/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).