Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510178 - hardened profiles: USE=urandom may introduce security problems
Summary: hardened profiles: USE=urandom may introduce security problems
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-12 18:27 UTC by Marc Schiffbauer
Modified: 2018-10-12 00:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2014-05-12 18:27:25 UTC
Hi,

I just realized that the hardened profile sets USE=urandom.

I think this is a very bad idea because for example using /dev/urandom in a virtual machine can result in getting very bad and not-so-random randomness.

Because one appliaction or another may slow down when using /dev/random this can be solved by using sys-apps/haveged which should give much better randomness than urandom does.

Thoughts?
Comment 1 Anthony Basile gentoo-dev 2014-10-17 17:38:23 UTC
(In reply to Marc Schiffbauer from comment #0)
> Hi,
> 
> I just realized that the hardened profile sets USE=urandom.
> 
> I think this is a very bad idea because for example using /dev/urandom in a
> virtual machine can result in getting very bad and not-so-random randomness.
> 
> Because one appliaction or another may slow down when using /dev/random this
> can be solved by using sys-apps/haveged which should give much better
> randomness than urandom does.
> 
> Thoughts?

Sorry for the delay, I just saw this going thorugh old bugs.

It may be the case that this is bad pseudo random numbers, but random blocks.  What I recommend is running haveged, especially in a vm, to generate extra entropy.

I'll let you close this if you think that's good enough.
Comment 2 Marc Schiffbauer gentoo-dev 2014-11-06 16:25:05 UTC
The point is: If you use haveged, you can use /dev/random very well.

I don#T think haveged will make randomness of /dev/urandoma any better won't it?
Comment 3 Marc Schiffbauer gentoo-dev 2015-03-10 01:20:30 UTC
Ping?
Comment 4 Jason Zaman gentoo-dev 2015-03-11 08:37:26 UTC
http://www.2uo.de/myths-about-urandom/

I dont really see a big problem with urandom. and if you want you can just use haveged too.
Comment 5 Marc Schiffbauer gentoo-dev 2015-03-11 09:09:05 UTC
Thanks, convinced. Then please close ;)