lkml.org 
[lkml]   [2013]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC 2/2] initramfs with digital signature protection
From
On Tue, Feb 5, 2013 at 8:34 PM, Vivek Goyal <vgoyal@redhat.com> wrote:
> On Tue, Feb 05, 2013 at 06:19:26PM +0000, Matthew Garrett wrote:
>> On Tue, Feb 05, 2013 at 02:34:50PM +0200, Dmitry Kasatkin wrote:
>>
>> > Digitally signed initramfs can be used to provide protected user-space
>> > environment for initialization purpose. For example, LSM, IMA/EVM can be
>> > securely initialized using such approach.
>>
>> What stops an attacker from simply removing the signed image from the
>> initramfs and running modified versions of the same tools from the
>> unsigned image?
>
> Looks like having signed initramfs image is mandatory otherwise system
> panics.
>
> + if (sys_access(initramfs_img, 0))
> + panic("signed initramfs image not found (INITRAMFS_SIG is
> +anabled)\n");
>
> Also I am assuming that from signed initramfs, keys will be loaded in
> appropriate keyrings and then keyring will be locked so that any
> tools from unsigned initramfs can not load additional keys.
>

Exactly like that.


> Thanks
> Vivek
> --
> To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html


\
 
 \ /
  Last update: 2013-02-05 23:42    [W:0.107 / U:1.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site