Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130188 - Initscript should warn on empty entropy source
Summary: Initscript should warn on empty entropy source
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-16 14:15 UTC by Bryan Østergaard (RETIRED)
Modified: 2006-06-06 02:06 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 Bryan Østergaard (RETIRED) gentoo-dev 2006-04-16 14:15:10 UTC
We should add some code to the initscript to check if /dev/random is empty and warn users to remerge apr with USE=random or install rng-tools.

We just need to check if /proc/sys/kernel/random/entropy_avail is 0 or not.

Remember to ask all archs to check this as /proc changes between archs.
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-04-22 15:48:35 UTC
It doesn't need to be 0. apache2 takes ages (around 5 minutes to be exact) to start when the entropy_avail is less than around 1000 (that's with mod_ssl and subversion enabled). Usage of entropy bits varies between setups (whenever mod_ssl is enabled, or not, whenever apr was buil with +urandom USE). IMVHO adding such code to init script is pointless, better to add big, fat warning in pkg_postinst about using rng-tools (or building apr with +urandom) if apache starts slowly.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2006-06-06 02:06:12 UTC
you'll only need entropy with mod_auth_digest, so this is very setup dependant...

as stated in comment #1 even a check for >= 0 is nearly pointless.. if you rely on auth_digest, put urandom in your use flags and re-emerge apr, or use tools like clrngd or rng-tools...