From: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: [patch 2/2] ssh-client: add urandom seeding
Date: Sat, 13 Oct 2012 10:11:08 +0800 [thread overview]
Message-ID: <5078CDBC.4090202@redhat.com> (raw)
In-Reply-To: <20121012133551.GA9490-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
On 10/12/2012 09:35 PM, Vivek Goyal wrote:
> On Fri, Oct 12, 2012 at 12:44:37PM +0800, Dave Young wrote:
>> On 10/12/2012 03:58 AM, Vivek Goyal wrote:
>>
>>> On Thu, Oct 11, 2012 at 10:16:01AM +0200, Harald Hoyer wrote:
>>>> Hmm, wouldn't that mean, that the generator is seeded with the _same_ seed on
>>>> every reboot?
>>>> How is this different from booting with no seed at all?
>>>
>>> Atleast it can help with kdump where we might regenerate the initramfs
>>> upon user config change and capture the new seed.
>>>
>>> Also kdump does not happen often on the machine. So I guess for once in
>>> a while operation it is still better to use random-seed then not using
>>> anything at all.
>>
>>
>> For normal boot case, I think something like
>> systemd-random-seed-load.service is fine because rootfs is always
>> mounted in initramfs. But I'm not sure how to handle the mount issue if
>> /var/lib if mounted to another partition.
>>
>> Or simply add below to pre-pivot hook:
>>
>> if [ -f /proc/vmcore ]; then
>> cat /var/lib/random-seed > /dev/urandom
>> else
>> if [ -f /sysroot/var/lib/random-seed ]; then
>> cat /sysroot/var/lib/random-seed > /dev/urandom
>> fi
>> fi
>>
>
> Or how about doing it rhel6 way. Let kdump module pack in
> /var/lib/random-seed in kdump initramfs and if this file is present,
> feed it to /dev/urandom.
Ok, will add this in kdump module instead.
Harald, please ignore patch 2/2 then.
>
> Thanks
> Vivek
--
Thanks
Dave
prev parent reply other threads:[~2012-10-13 2:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-11 8:07 [patch 0/2] two ssh-client module fixes dyoung-H+wXaHxf7aLQT0dZR+AlfA
2012-10-11 8:07 ` [patch 1/2] ssh-client: remove ctty related check dyoung-H+wXaHxf7aLQT0dZR+AlfA
2012-10-11 8:07 ` [patch 2/2] ssh-client: add urandom seeding dyoung-H+wXaHxf7aLQT0dZR+AlfA
[not found] ` <20121011080918.972371593-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-11 8:16 ` Harald Hoyer
[not found] ` <50768041.8000803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-11 8:25 ` Dave Young
[not found] ` <5076826D.2020201-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-11 8:27 ` Dave Young
2012-10-11 19:58 ` Vivek Goyal
[not found] ` <20121011195823.GD2218-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-12 4:44 ` Dave Young
[not found] ` <5077A035.30008-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-12 13:35 ` Vivek Goyal
[not found] ` <20121012133551.GA9490-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-13 2:11 ` Dave Young [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=5078CDBC.4090202@redhat.com \
--to=dyoung-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.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