r1152 - in trunk/BOOK: . chapter01 chapter04 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Mon Jun 11 10:48:43 PDT 2007


Author: robert
Date: 2007-06-11 11:48:43 -0600 (Mon, 11 Jun 2007)
New Revision: 1152

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter04/patches.xml
   trunk/BOOK/chapter06/bash.xml
   trunk/BOOK/patches.ent
Log:
Added arc4random() patch for Bash

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-06-11 15:52:43 UTC (rev 1151)
+++ trunk/BOOK/chapter01/changelog.xml	2007-06-11 17:48:43 UTC (rev 1152)
@@ -52,6 +52,9 @@
       <para>June 11th, 2007</para>
       <itemizedlist>
         <listitem>
+          <para>[robert]: Added arc4random() patch for Bash.</para>
+        </listitem>
+        <listitem>
           <para>[robert]: Added new fgets() overflow program, for testing.</para>
         </listitem>
         <listitem>

Modified: trunk/BOOK/chapter04/patches.xml
===================================================================
--- trunk/BOOK/chapter04/patches.xml	2007-06-11 15:52:43 UTC (rev 1151)
+++ trunk/BOOK/chapter04/patches.xml	2007-06-11 17:48:43 UTC (rev 1152)
@@ -19,6 +19,14 @@
   <variablelist role="materials">
 
     <varlistentry>
+      <term>Bash Arc4random Patch - <token>&bash-arc4random-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink url="&patches-root;&bash-arc4random-patch;"/></para>
+        <para>MD5 sum: <literal>&bash-arc4random-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
+    <varlistentry>
       <term>Bash Upstream Fixes - <token>&bash-fixes-patch-size;</token>:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&bash-fixes-patch;"/></para>

Modified: trunk/BOOK/chapter06/bash.xml
===================================================================
--- trunk/BOOK/chapter06/bash.xml	2007-06-11 15:52:43 UTC (rev 1151)
+++ trunk/BOOK/chapter06/bash.xml	2007-06-11 17:48:43 UTC (rev 1152)
@@ -28,6 +28,12 @@
 
 <screen><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
 
+    <para>This patch uses <function>arc4random</function> for the
+    <envar>RANDOM</envar> environment variable when it is not initialized.
+    This patch was submitted upstream, and is pending review:</para>
+
+<screen><userinput>patch -Np1 -i ../&bash-arc4random-patch;</userinput></screen>
+
   <para>Prepare Bash for compilation:</para>
 
 <screen><userinput>./configure --prefix=/usr --bindir=/bin \

Modified: trunk/BOOK/patches.ent
===================================================================
--- trunk/BOOK/patches.ent	2007-06-11 15:52:43 UTC (rev 1151)
+++ trunk/BOOK/patches.ent	2007-06-11 17:48:43 UTC (rev 1152)
@@ -2,6 +2,10 @@
 
 <!-- Start of Common Patches -->
 
+<!ENTITY bash-arc4random-patch "bash-&bash-version;-arc4random-1.patch">
+<!ENTITY bash-arc4random-patch-md5 "9d3b44581aa9689fb742f28ad72b9108">
+<!ENTITY bash-arc4random-patch-size "8 KB">
+
 <!ENTITY bash-fixes-patch "bash-&bash-version;-fixes-5.patch">
 <!ENTITY bash-fixes-patch-md5 "70e2c3983575a8e82f8601a417e126f0">
 <!ENTITY bash-fixes-patch-size "36 KB">




More information about the hlfs-book mailing list