Hello, recently I found the option to increase size of random pool in hardened-sources. But /etc/init.d/urandom doesn't respect this modification and saved only standard 4096 bits (it's 16384 with this option). So I modified /etc/init.d/urandom to be more flexible. Because I'm not a shell programmer, it needs sys-devel/bc (bash can do math internally, but I see that current policy is NO_BASH!, so bc dep).
Created attachment 118629 [details, diff] urandom.patch patch for urandom
ugh, dont use bc ... that isnt a required utility in Gentoo just use shell to do math
Unfortunately, I know how to do this only with bash: declare -i TMP_COUNT=$TMP_POOLSIZE/4096
(In reply to comment #3) > Unfortunately, I know how to do this only with bash: > declare -i TMP_COUNT=$TMP_POOLSIZE/4096 > TMP_COUNT=$((${TMP_POOLSIZE} / 4096))
Created attachment 118811 [details, diff] urandom.patch Thanks for help, and this is new "NO-BASH" patch
Good enough, I've modified it a little more and it's in our svn trunk.
Thanks
Fixed in baselayout-2.0.0_alpha3