Skip to contentSkip to conversation

move random-seed from /etc to /var/lib

PATCH New Alex Suykov 1 participant 1 message Mar 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 move random-seed from /etc to /var/lib

In case / is mounted read-only, /etc is likely to be read-only as well, so the seed will not be saved even if read-write /var is available.

Also adjust S20urandom script to handle nonexistant random-seed, and remove the static initial seed to avoid seeding read-only systems with pre-defined data.

---
 system/device_table.txt               |   1 -
 system/skeleton/etc/init.d/S20urandom |  49 ++++++----------------------------
 system/skeleton/etc/random-seed       | Bin 512 -> 0 bytes
 3 files changed, 8 insertions(+), 42 deletions(-)
 delete mode 100644 system/skeleton/etc/random-seed
system/device_table.txt +0 -1
index 8e7dbd2..e15412d 100644
@@ -11,7 +11,6 @@
 /etc					d	755	0	0	-	-	-	-	-
 /root					d	700	0	0	-	-	-	-	-
 /var/www				d	755	33	33	-	-	-	-	-
-/etc/random-seed			f	600	0	0	-	-	-	-	-
 /etc/shadow				f	600	0	0	-	-	-	-	-
 /etc/passwd				f	644	0	0	-	-	-	-	-
 /etc/network/if-up.d			d	755	0	0	-	-	-	-	-
system/skeleton/etc/init.d/S20urandom +8 -41

59 lines not on this page · raw message

system/skeleton/etc/random-seed deleted binary +0 -0
deleted file mode 100644
index f26038adc5d057a0b9d6ce5d3cda02ccb4a4d12e..0000000000000000000000000000000000000000
GIT binary patch

zH?Zu5*rX8>4xpAvJIL$H4mg*!B4&9jh)7+B2j-fX7o at K*bzj;pJ$FwoQzl&MuZ^Wy zrYS)x9vq<)#e~&1uB|_ITW-fntEg1^KXs3>vvgL7?_kg!+6=fg{S7mwkr$#pm<zB( zu)oAUWFK-u-)cWcuSL*8$Q<cmC?ll~NEK@l5k|75(YzZ_p!I6FJ}YI_3>PZ13liCc zi|M+im&71p*p+Z|7f(m-aedNFtEezFN<xKEd-wQ71%XuGfKr+6VcDycMQ(v6+Z0G| z-MPjg@JHu%y(|h1cTa=a4(m?GyU)ZD-T+-vLXX}cCXyn}vCXC3Hn1ftzDTL(};Rr z?3wX?Eh5%n+AXAeDtXvl!o>-nZHytAhV~}?OM$-f$(%cG(ioV{==Ub4mfZP}OaJJ7 z25tvCcku=>;L?}O-dvK9}<^gmg@IrnfQm#P>RRF|C9c;GDgEg_bw26{dkIVt1{ z3#ol{Q_FL91TBD~{uZn<gw?^=VUuSaIf)=p07n=>RRZ(Otf!KXM&;q)8B<Q8(T)k z?Z}a{1Jyf~bQPL{qVQk6jFNfBr)0;57HwNo6Kw{wdPGHUWrfsJ}0VmW|Tr22whlO C+W_DI

Signature · 1 line
2.0.3