Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] Try to make urandom more random using the proper seed.
@ 2014-07-11 13:22 Abelenda Diego
  2014-07-11 14:24 ` Abelenda Diego
  0 siblings, 1 reply; 2+ messages in thread
From: Abelenda Diego @ 2014-07-11 13:22 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1727 bytes --]

From 963a99512475b6bc402d2339fa4e4765960e4c26 Mon Sep 17 00:00:00 2001
From: Diego <diego.abelenda@domo-safety.com>
Date: Fri, 11 Jul 2014 14:30:56 +0200
Subject: [PATCH] Try to make urandom more random using the proper seed.

If we follow the syntax here we think that previously, at shutdown, the seed file was created after urandom was re-seeded with its state at boot. This might make the state of urandom pretty similar to its state at last reboot. Even if it might not be the case since the /etc/init.d/rc script tells us that it stops services in reboot and shutdown runlevels.

If this patch does not makes the initscript called with argument start at boot and stop at shutdown, it will at least make things less confusing and give the correct names for the /etc/rc?.d/ links. But from what I understand, the initscript will not be called at all at shutdown because of the double start pervention in /etc/init.d/rc.

---
 meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.  bb
index 531b2b6..b266ba6 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -104,7 +104,7 @@ do_install () {
 #
    update-rc.d -r ${D} rmnologin.sh start 99 2 3 4 5 . 
    update-rc.d -r ${D} sendsigs start 20 0 6 . 
-   update-rc.d -r ${D} urandom start 30 S 0 6 .
+   update-rc.d -r ${D} urandom start 30 S . stop 30 0 6 .
    update-rc.d -r ${D} umountnfs.sh start 31 0 6 . 
    update-rc.d -r ${D} umountfs start 40 0 6 . 
    update-rc.d -r ${D} reboot start 90 6 . 
-- 
2.0.0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-11 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-11 13:22 [PATCH] Try to make urandom more random using the proper seed Abelenda Diego
2014-07-11 14:24 ` Abelenda Diego

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox