Страница 1 из 1

initrandom

Добавлено: 2009-10-10 21:40:33
mihan_k
Всем привет, расскажите, кто знает, для чего используются файлы /etc/rc.d/initrandom и /etc/rc.d/root?

Re: initrandom

Добавлено: 2009-10-10 21:41:35
f_andrey
а почитать не судьба?
переносится в null

Re: initrandom

Добавлено: 2009-10-10 21:44:16
Alex Keda
f_andrey писал(а):а почитать не судьба?
переносится в null
нехорошо...
ты бы ему хоть подсказал где читать - ибо:

Код: Выделить всё

HP$ man root
No manual entry for root
HP$ man initrandom
No manual entry for initrandom
HP$

Re: initrandom

Добавлено: 2009-10-10 21:49:32
mihan_k
Что значит почитать?
Судя по содержимому (для initrandom) после каждой загрузки обновляются файлы /entropy и /var/db/entropy/saved-entropy.1-8,
заполняются случайными числами, но не понятно для чего..
И подскажи, где почитать, а то я не нашёл.

PS: прикольно тема быстро поменяла местоположение, я даже потерялся :smile:

Re: initrandom

Добавлено: 2009-10-10 22:30:37
f_andrey
Ну и в чем проблема

смотрим
> grep # /etc/rc.d/random
# Reseed /dev/random with previously stored entropy.
# Write some entropy so when the machine reboots /dev/random
# can be reseeded
#
# Try this as a reasonable alternative for read-only
# roots, diskless workstations, etc.
> grep # /etc/rc.d/root
# root normally must be read/write, but if this is a BOOTP NFS
# diskless boot it does not have to be.
#
# If we booted a special kernel remove the record
# so we will boot the default kernel next time.
По моему вполне осмысленные записи, если интересен смысл понятий то тут гугл в руки и вперед, ибо вполне обшие понятия, и смысла их растолковывать нет никакого.

P.S.: сори чуть не стого файла цитаты выложил, но по теме так что пусть будут, да и догодаться что он из той же оперы не мудрено, вот по вопросу :)
> grep # /etc/rc.d/initrandom
# XXX temporary until we can improve the entropy
# harvesting rate.
# Entropy below is not great, but better than nothing.
# This unblocks the generator at startup
# First pass at reseeding /dev/random.

Re: initrandom

Добавлено: 2009-10-10 22:37:41
mihan_k
Ну с root я понял, получается проверяет загрузку с бездисковой станции, а random для чего создаёт эти файлы, где они используются в дальнейшем? в гугле нету, я искал.

Re: initrandom

Добавлено: 2009-10-10 22:49:29
f_andrey
mihan_k писал(а):в гугле нету, я искал.
Блин ну почему мне вечно попадается сломанный гугл который находит все что надо, например нахрена нужна энтропия, это для начала, я вам еше могу наискать кучу всего, но кому оно надо?

Re: initrandom

Добавлено: 2009-10-11 16:32:16
ProFTP
lissyara писал(а):
f_andrey писал(а):а почитать не судьба?
переносится в null
нехорошо...
ты бы ему хоть подсказал где читать - ибо:

Код: Выделить всё

HP$ man root
No manual entry for root
HP$ man initrandom
No manual entry for initrandom
HP$
скажи ему чтобы сиськи и жопки не трогал :-D

Re: initrandom

Добавлено: 2009-10-11 19:54:42
Гость
хмм, rfc большая, там слишком много букв. В random(4) гораздо более простой ликбез описан
RANDOMNESS
Generation of passwords, session keys and the like requires cryptographic
randomness. A cryptographic random number generator should be designed
so that its output is difficult to guess, even if a lot of auxiliary
information is known (such as when it was seeded, subsequent or previous
output, and so on). On FreeBSD, seeding for cryptographic random number
generators is provided by the random device, which provides real random?
ness.
...
Randomness that is used for collision avoidance (for example, in certain
network protocols) has slightly different semantics again. It is usually
expected that the numbers will be uniform, as this produces the lowest
chances of collision. Here again, the seeding of the generator is very
important, as it is required that different instances of the generator
produce independent sequences. However, the guessability or repro?
ducibility of the sequence is unimportant, unlike the previous cases.
например, message-id в email'ах