Author: robert
Date: 2011-08-13 22:26:03 -0600 (Sat, 13 Aug 2011)
New Revision: 1642
Modified:
trunk/BOOK/chapter01/changelog.xml
trunk/BOOK/chapter03/patches.xml
trunk/BOOK/chapter06/glibc.xml
trunk/BOOK/patches.ent
Log:
Add strlcpy_strlcat patch to Glibc.
Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml 2011-08-14 04:05:45 UTC (rev 1641)
+++ trunk/BOOK/chapter01/changelog.xml 2011-08-14 04:26:03 UTC (rev 1642)
@@ -43,6 +43,9 @@
<listitem>
<para>[robert] - Add PaX patches to Binutils and Glibc.</para>
</listitem>
+ <listitem>
+ <para>[robert] - Add strlcpy_strlcat patch to Glibc.</para>
+ </listitem>
</itemizedlist>
</listitem>
Modified: trunk/BOOK/chapter03/patches.xml
===================================================================
--- trunk/BOOK/chapter03/patches.xml 2011-08-14 04:05:45 UTC (rev 1641)
+++ trunk/BOOK/chapter03/patches.xml 2011-08-14 04:26:03 UTC (rev 1642)
@@ -155,6 +155,14 @@
</varlistentry>
<varlistentry>
+ <term>Glibc strlcpy(3) strlcat(3) Patch -
<token>&glibc-strlcpy_strlcat-patch-size;</token>:</term>
+ <listitem>
+ <para>Download: <ulink
url="&patches-root;&glibc-strlcpy_strlcat-patch;"/></para>
+ <para>MD5 sum:
<literal>&glibc-strlcpy_strlcat-patch-md5;</literal></para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term>Grsecurity Kernel Patch -
<token>&grsecurity-patch-size;</token>:</term>
<listitem>
<para>Download: <ulink
url="http://grsecurity.net/stable/&grsecurity-patch;"/></para>
Modified: trunk/BOOK/chapter06/glibc.xml
===================================================================
--- trunk/BOOK/chapter06/glibc.xml 2011-08-14 04:05:45 UTC (rev 1641)
+++ trunk/BOOK/chapter06/glibc.xml 2011-08-14 04:26:03 UTC (rev 1642)
@@ -101,15 +101,20 @@
<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>The Glibc documentation recommends building Glibc outside of the
source
- directory in a dedicated build directory:</para>
-
<para>Add PaX support to Glibc:</para>
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-pt_pax-patch;
patch -Np1 -i ../&glibc-dl_execstack-patch;
patch -Np1 -i ../&glibc-localedef_trampoline-patch;</userinput></screen>
+ <para>Add the <option>strlcpy</option> and <option>strlcat</option> library
+ functions to Glibc:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i
../&glibc-strlcpy_strlcat-patch;</userinput></screen>
+
+ <para>The Glibc documentation recommends building Glibc outside of the
source
+ directory in a dedicated build directory:</para>
+
<screen><userinput remap="pre">mkdir -v ../glibc-build
cd ../glibc-build</userinput></screen>
Modified: trunk/BOOK/patches.ent
===================================================================
--- trunk/BOOK/patches.ent 2011-08-14 04:05:45 UTC (rev 1641)
+++ trunk/BOOK/patches.ent 2011-08-14 04:26:03 UTC (rev 1642)
@@ -81,7 +81,11 @@
<!ENTITY glibc-pt_pax-patch-md5 "9234975544859ee20b54720e4eda5302">
<!ENTITY glibc-pt_pax-patch-size "4 KB">
+<!ENTITY glibc-strlcpy_strlcat-patch
"glibc-&glibc-version;-strlcpy_strlcat-1.patch">
+<!ENTITY glibc-strlcpy_strlcat-patch-md5 "a97561ee8e9abd25af48ca9abf0ac289">
+<!ENTITY glibc-strlcpy_strlcat-patch-size "12 KB">
+
<!ENTITY grsecurity-patch "grsecurity-2.2.2-2.6.32.44-201108091835.patch">
<!ENTITY grsecurity-patch-md5 "efcba6dc0505179c09fd697c62aa9582">
<!ENTITY grsecurity-patch-size "2.6 MB">
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-book
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page