On Fri, Oct 03, 2003 at 11:27:09PM -0700, Tracy R Reed wrote:
> open("/dev/urandom", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EACCES 
> (Permission denied)
> 
> Why does java/freenet access /dev/urandom? And why is it being denied?
> Perms look ok...

To get true-random numbers to seed Yarrow with, most likely.
> 
> cr--r--r--    1 root     root       1,   9 Jul 20 06:43 /dev/urandom
> 
> And what is it hurting that it can't open it?

Randomness. Crypto is useless if the keys are predictable.
> 
> I just noticed that freenet is only using half of my cpu and top actually
> works now (before running top while freenet was running was incredibly
> slow due to the extreme numbers of threads) which is nice but one
> particular thread was using the most cpu consistantly so I did an strace
> on it and in addition to opening /dev/urandom and failing it is doing a
> ton of:
> 
>  gettimeofday({1065248270, 104681}, NULL) = 0
>  gettimeofday({1065248270, 104750}, NULL) = 0
>  kill(16216, SIGRTMIN)                   = 0
>  kill(16216, SIGRTMIN)                   = 0
> 
> as well as:
> 
> poll([{fd=6, events=POLLIN}, {fd=45, events=POLLIN, revents=POLLIN},
> {fd=488, events=POLLIN}, {fd=61, events=POLLIN}, {fd=1028, events=POLLIN},
> {fd=885, events=POLLIN}, {fd=99, events=POLLIN}, {fd=78, events=POLLIN},
> {fd=48, events=POLLIN}, {fd=66, events=POLLIN}, {fd=471, events=POLLIN}, 
> 
> Hundreds of those then some gettimeofday and kill and more POLLIN. Is this
> normal behavior?

That is strange.
> 
> -- 
> Tracy Reed
> http://copilotconsulting.com

-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to