From: Rob Landley <rob@landley.net>
To: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: Christophe Fillot <cf@utc.fr>,
linux-ima-user@lists.sourceforge.net,
linux-security-module <linux-security-module@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [Linux-ima-user] Initramfs and IMA Appraisal
Date: Mon, 29 Dec 2014 22:17:32 -0600 [thread overview]
Message-ID: <54A2275C.3030908@landley.net> (raw)
In-Reply-To: <1419909649.14143.86.camel@dhcp-9-2-203-236.watson.ibm.com>
On 12/29/2014 09:20 PM, Mimi Zohar wrote:
> On Mon, 2014-12-29 at 19:55 -0600, Rob Landley wrote:
>>> Thanks Rob for the explanation. The problem is that ramfs does not
>>> support extended attributes, while tmpfs does.
>>
>> If you're _using_ initramfs/initmpfs, there's no reason to specify a root=.
>
> The menu entry looks like:
> linux /vmlinuz-3.17.0+ root=UUID=94595ff7-0fd4-4ea3-99f2-f7ddf8fbc91f
> ro ...
> initrd /initramfs-3.17.0+.img
>
> Because "root=" is specified, rootfs is not using tmpfs.
Yes. Pilot error.
If you want tmpfs to switch to UUID $THINGY you can do ROOT= and have it
use that. You're asking for something to be interpreted by the kernel
sometimes and passed on to userspace other times and have no side
effects even though it's interpeted by the kernel.
>>> The boot loader could
>>> "measure" (trusted boot) the initramfs, but as the initramfs is
>>> generated on the target system, the initramfs is not signed, preventing
>>> it from being appraised (secure Boot). To close the initramfs integrity
>>> appraisal gap requires verifying the individual initramfs file
>>> signatures, which are stored as extended attributes.
>>
>> Faced with the phrases "trusted boot" and "integrity appraisal", I plead
>> the third.
>
> Fine. Bottom line, rootfs needs to support extended attributes.
I added a patch to make it work as tmpfs a year ago. You now know what
trivial configuration mistake you make that's preventing it from
working. If you'd like me to submit a documentation update patch to make
it easier to avoid in future, I can do that.
>> (In the wake of the Snowden infodump,
>
> All the more reason to allow only those files that are properly signed
> to be read/executed.
Using the infrastructure the NSA provided, which is intentionally so
complicated that "you are not expected to understand this".
Good luck with that.
> Mimi
Rob
next prev parent reply other threads:[~2014-12-30 4:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5463ABC8.10308@utc.fr>
[not found] ` <1415827252.18773.33.camel@dhcp-9-2-203-236.watson.ibm.com>
[not found] ` <547617AF.6000604@utc.fr>
[not found] ` <1417039941.26016.46.camel@dhcp-9-2-203-236.watson.ibm.com>
[not found] ` <5476EBAC.8090103@utc.fr>
2014-12-29 13:45 ` [Linux-ima-user] Initramfs and IMA Appraisal Mimi Zohar
2014-12-29 20:34 ` Rob Landley
2014-12-29 21:46 ` Mimi Zohar
2014-12-30 1:55 ` Rob Landley
2014-12-30 3:20 ` Mimi Zohar
2014-12-30 4:17 ` Rob Landley [this message]
2014-12-30 2:25 ` David Lang
2014-12-30 3:06 ` Mimi Zohar
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=54A2275C.3030908@landley.net \
--to=rob@landley.net \
--cc=cf@utc.fr \
--cc=linux-ima-user@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=zohar@linux.vnet.ibm.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