Forráskód Böngészése

Added patch to fix vulnerable tempfile creation texinfo.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6983 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Archaic 20 éve
szülő
commit
50993e3328
4 módosított fájl, 18 hozzáadás és 0 törlés
  1. 4 0
      chapter01/changelog.xml
  2. 7 0
      chapter03/patches.xml
  3. 5 0
      chapter06/texinfo.xml
  4. 2 0
      patches.ent

+ 4 - 0
chapter01/changelog.xml

@@ -103,6 +103,7 @@ First a summary, then a detailed log.</para>
 <listitem><para>&mktemp-tempfile-patch;</para></listitem>
 <listitem><para>&perl-libc-patch;</para></listitem>
 <listitem><para>&tar-gcc4_fix-patch;</para></listitem>
+<listitem><para>&texinfo-tempfile_fix-patch;</para></listitem>
 <listitem><para>&vim-security_fix-patch;</para></listitem>
 </itemizedlist>
 </listitem>
@@ -122,6 +123,9 @@ First a summary, then a detailed log.</para>
 </itemizedlist>
 </listitem>
 
+<listitem><para>October 8, 2005 [archaic]: Added patch to fix poor tempfile
+creation in Texinfo-4.8 that can lead to a symlink attack.</para></listitem>
+
 <listitem><para>October 8, 2005 [matt]: Upgrade to iproute2-051007.</para>
 </listitem>
 

+ 7 - 0
chapter03/patches.xml

@@ -205,6 +205,13 @@ needed to build an LFS system:</para>
 </listitem>
 </varlistentry>
 
+<varlistentry>
+<term>Texinfo Tempfile Fix Patch - 2 KB:</term>
+<listitem>
+<para><ulink url="&patches-root;&texinfo-tempfile_fix-patch;"/></para>
+</listitem>
+</varlistentry>
+
 <varlistentry>
 <term>Util-linux Cramfs Patch - 3 KB:</term> <listitem>
 <para><ulink url="&patches-root;&util-linux-cramfs-patch;"/></para>

+ 5 - 0
chapter06/texinfo.xml

@@ -31,6 +31,11 @@ Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
 <sect2 role="installation">
 <title>Installation of Texinfo</title>
 
+<para>Texinfo allows local users to overwrite arbitrary files via a symlink
+attack on temporary files. Apply the following patch to fix this:</para>
+
+<screen><userinput>patch -Np1 -i ../&texinfo-tempfile_fix-patch;</userinput></screen>
+
 <para>Prepare Texinfo for compilation:</para>
 
 <screen><userinput>./configure --prefix=/usr</userinput></screen>

+ 2 - 0
patches.ent

@@ -44,6 +44,8 @@
 <!ENTITY tar-sparse_fix-patch "tar-&tar-version;-sparse_fix-1.patch">
 <!ENTITY tar-gcc4_fix-patch "tar-&tar-version;-gcc4_fix_tests-1.patch">
 
+<!ENTITY texinfo-tempfile_fix-patch "texinfo-&texinfo-version;-tempfile_fix-1.patch">
+
 <!ENTITY util-linux-cramfs-patch "util-linux-&util-linux-version;-cramfs-1.patch">
 
 <!ENTITY vim-security_fix-patch "vim-&vim-version;-security_fix-2.patch">