Author: robert
Date: 2011-08-18 00:10:25 -0600 (Thu, 18 Aug 2011)
New Revision: 1663
Modified:
trunk/BOOK/chapter01/changelog.xml
trunk/BOOK/chapter06/glibc.xml
trunk/BOOK/chapter06/perl.xml
Log:
Use /dev/erandom with Perl and Glibc.
Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml 2011-08-18 04:39:11 UTC (rev 1662)
+++ trunk/BOOK/chapter01/changelog.xml 2011-08-18 06:10:25 UTC (rev 1663)
@@ -43,6 +43,9 @@
<listitem>
<para>[robert] - Added Frandom to kernel page.</para>
</listitem>
+ <listitem>
+ <para>[robert] - Use /dev/erandom with Perl and Glibc.</para>
+ </listitem>
</itemizedlist>
</listitem>
Modified: trunk/BOOK/chapter06/glibc.xml
===================================================================
--- trunk/BOOK/chapter06/glibc.xml 2011-08-18 04:39:11 UTC (rev 1662)
+++ trunk/BOOK/chapter06/glibc.xml 2011-08-18 06:10:25 UTC (rev 1663)
@@ -101,6 +101,11 @@
<screen><userinput remap="pre">sed -i '195,213
s/PRIVATE_FUTEX/FUTEX_CLOCK_REALTIME/' \
nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timed{rd,wr}lock.S</userinput></screen>
+ <para>Use <filename class="devicefile">/dev/erandom</filename> with
+ <option>-fstack-protector-all</option>:</para>
+
+<screen><userinput remap="pre">sed -i 's@/dev/urandom@/dev/erandom@'
./sysdeps/unix/sysv/linux/dl-osinfo.h</userinput></screen>
+
<para>Add PaX support to Glibc:</para>
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-pt_pax-patch;
Modified: trunk/BOOK/chapter06/perl.xml
===================================================================
--- trunk/BOOK/chapter06/perl.xml 2011-08-18 04:39:11 UTC (rev 1662)
+++ trunk/BOOK/chapter06/perl.xml 2011-08-18 06:10:25 UTC (rev 1663)
@@ -72,7 +72,8 @@
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dpager="/usr/bin/less -isR" \
- -Duseshrplib</userinput></screen>
+ -Duseshrplib \
+ -DPERL_RANDOM_DEVICE="/dev/erandom"</userinput></screen>
<variablelist>
<title>The meaning of the configure options:</title>
@@ -110,6 +111,13 @@
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>-DPERL_RANDOM_DEVICE="/dev/erandom"</parameter></term>
+ <listitem>
+ <para>Use <filename class="devicefile">/dev/erandom</filename> for
entropy.</para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
<para>Compile the package:</para>
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-book
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page