Re: [systemd-devel] Why we need to read/save random seed?

2015-06-28 Thread cee1
2015-06-15 0:43 GMT+08:00 Greg KH gre...@linuxfoundation.org: On Sun, Jun 14, 2015 at 12:49:55PM -0300, Cristian Rodríguez wrote: El jun. 14, 2015 10:21, cee1 fykc...@gmail.com escribió: Hi all, Why we need to read/save random seed? Can it be read from /dev/random each time? Because

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-19 Thread Lennart Poettering
On Wed, 17.06.15 17:38, Reindl Harald (h.rei...@thelounge.net) wrote: * the purpose of systemd-random-seed.service is to seed /dev/random realy at boot so that other services like sshd, vpn, webservers have a random source * seed /dev/random *followed* by suck it out again like has

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-19 Thread Reindl Harald
Am 17.06.2015 um 17:08 schrieb cee1: 2015-06-17 22:03 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: What I means is: 1. Load a saved seed to /dev/urandom. 2. The service read /dev/random, which will block until kernel thinks

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: Am 17.06.2015 um 05:06 schrieb cee1: 2015-06-16 0:21 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote: Hi, I maybe got confused. First,

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Reindl Harald
Am 17.06.2015 um 14:21 schrieb cee1: 2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: systemd-random-seed.service will load the seed on disk to /dev/urandom, and save a seed to disk when shutdown, right? The article at http://www.2uo.de/myths-about-urandom/ suggests us saving

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Reindl Harald
Am 17.06.2015 um 05:06 schrieb cee1: 2015-06-16 0:21 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote: Hi, I maybe got confused. First, systemd-random-seed.service will save a seed from /dev/urandom when shutdown, and load that seed

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Kay Sievers
On Wed, Jun 17, 2015 at 2:28 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 17.06.2015 um 14:21 schrieb cee1: 2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: systemd-random-seed.service will load the seed on disk to /dev/urandom, and save a seed to disk when shutdown,

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 16:04, Reindl Harald (h.rei...@thelounge.net) wrote: Please keep such comments to yourself or you will be moderated again you threaten everytime you personally don't agree is a better style? Congratulations, I just put you back on moderation. Lennart -- Lennart

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: 2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: Am 17.06.2015 um 05:06 schrieb cee1: 2015-06-16 0:21 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote:

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Reindl Harald
Am 17.06.2015 um 14:51 schrieb Kay Sievers: On Wed, Jun 17, 2015 at 2:28 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 17.06.2015 um 14:21 schrieb cee1: 2015-06-17 16:40 GMT+08:00 Reindl Harald h.rei...@thelounge.net: systemd-random-seed.service will load the seed on disk to

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 22:03 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: What I means is: 1. Load a saved seed to /dev/urandom. 2. The service read /dev/random, which will block until kernel thinks there's enough entropy - then the Random

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
On Wed, 17.06.15 23:08, cee1 (fykc...@gmail.com) wrote: 2015-06-17 22:03 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: What I means is: 1. Load a saved seed to /dev/urandom. 2. The service read /dev/random, which will block

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 23:15 GMT+08:00 Lennart Poettering lenn...@poettering.net: That don't mean blocking boot, but a service, let's say systemd-random-seed.service: 1. systemd-random-seed.service loads a seed from disk to /dev/urandom 2. systemd-random-seed.service tells systemd I'm ready (sd_notify())

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread cee1
2015-06-17 23:38 GMT+08:00 Reindl Harald h.rei...@thelounge.net: Am 17.06.2015 um 17:08 schrieb cee1: 2015-06-17 22:03 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Wed, 17.06.15 20:21, cee1 (fykc...@gmail.com) wrote: What I means is: 1. Load a saved seed to /dev/urandom. 2.

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
B1;4002;0cOn Wed, 17.06.15 23:45, cee1 (fykc...@gmail.com) wrote: 2015-06-17 23:15 GMT+08:00 Lennart Poettering lenn...@poettering.net: That don't mean blocking boot, but a service, let's say systemd-random-seed.service: 1. systemd-random-seed.service loads a seed from disk to /dev/urandom

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-17 Thread Lennart Poettering
On Thu, 18.06.15 00:00, cee1 (fykc...@gmail.com) wrote: First it seeds /dev/urandom Second, seed /dev/random will not increase the entropy without using ioctl (please see https://www.mail-archive.com/systemd-devel@lists.freedesktop.org/msg32555.html) Though, some other services may read

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-16 Thread cee1
2015-06-16 0:21 GMT+08:00 Lennart Poettering lenn...@poettering.net: On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote: Hi, I maybe got confused. First, systemd-random-seed.service will save a seed from /dev/urandom when shutdown, and load that seed to /dev/urandom when next boot up.

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-15 Thread cee1
Hi, I maybe got confused. First, systemd-random-seed.service will save a seed from /dev/urandom when shutdown, and load that seed to /dev/urandom when next boot up. My questions are: 1. Can we not save a seed, but load a seed that is read from ** /dev/random ** to ** /dev/urandom **? 2. Saving

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-15 Thread Lennart Poettering
On Mon, 15.06.15 23:33, cee1 (fykc...@gmail.com) wrote: Hi, I maybe got confused. First, systemd-random-seed.service will save a seed from /dev/urandom when shutdown, and load that seed to /dev/urandom when next boot up. My questions are: 1. Can we not save a seed, but load a seed

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-15 Thread Cristian Rodríguez
On Mon, Jun 15, 2015 at 12:33 PM, cee1 fykc...@gmail.com wrote: Hi, I maybe got confused. First, systemd-random-seed.service will save a seed from /dev/urandom when shutdown, and load that seed to /dev/urandom when next boot up. My questions are: 1. Can we not save a seed, but load a

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Mantas Mikulėnas
On Sun, Jun 14, 2015 at 4:21 PM, cee1 fykc...@gmail.com wrote: Hi all, Why we need to read/save random seed? Can it be read from /dev/random each time? Well, that would sorta defeat the point. The random seed isn't for systemd's use. On boot, it is *written to* /dev/random, not read from

[systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread cee1
Hi all, Why we need to read/save random seed? Can it be read from /dev/random each time? -- Regards, - cee1 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Lennart Poettering
On Sun, 14.06.15 14:11, Cristian Rodríguez (cristian.rodrig...@opensuse.org) wrote: On Sun, Jun 14, 2015 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Sun, Jun 14, 2015 at 12:49:55PM -0300, Cristian Rodríguez wrote: El jun. 14, 2015 10:21, cee1 fykc...@gmail.com escribió:

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Cristian Rodríguez
El jun. 14, 2015 10:21, cee1 fykc...@gmail.com escribió: Hi all, Why we need to read/save random seed? Can it be read from /dev/random each time? Because the kernel is borked and still is needs to be fed of entropy at system startup by user space. Please read the random man page. I agree we

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Greg KH
On Sun, Jun 14, 2015 at 12:49:55PM -0300, Cristian Rodríguez wrote: El jun. 14, 2015 10:21, cee1 fykc...@gmail.com escribió: Hi all, Why we need to read/save random seed? Can it be read from /dev/random each time? Because the kernel is borked and still is needs to be fed of entropy

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Cristian Rodríguez
On Sun, Jun 14, 2015 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Sun, Jun 14, 2015 at 12:49:55PM -0300, Cristian Rodríguez wrote: El jun. 14, 2015 10:21, cee1 fykc...@gmail.com escribió: Hi all, Why we need to read/save random seed? Can it be read from /dev/random each

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Greg KH
On Sun, Jun 14, 2015 at 02:11:53PM -0300, Cristian Rodríguez wrote: On Sun, Jun 14, 2015 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Sun, Jun 14, 2015 at 12:49:55PM -0300, Cristian Rodríguez wrote: El jun. 14, 2015 10:21, cee1 fykc...@gmail.com escribió: Hi all, Why

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Cristian Rodríguez
On Sun, Jun 14, 2015 at 6:45 PM, Greg KH gre...@linuxfoundation.org wrote: On Sun, Jun 14, 2015 at 02:11:53PM -0300, Cristian Rodríguez wrote: On Sun, Jun 14, 2015 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Sun, Jun 14, 2015 at 12:49:55PM -0300, Cristian Rodríguez wrote: El

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Dax Kelson
On Jun 14, 2015 10:11 AM, Cristian Rodríguez cristian.rodrig...@opensuse.org wrote: On Sun, Jun 14, 2015 at 1:43 PM, Greg KH gre...@linuxfoundation.org wrote: On Sun, Jun 14, 2015 at 12:49:55PM -0300, Cristian Rodríguez wrote: Las time I checked , it required this userspace help even when