ed-inst.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Ed</title>
  4. <note><para>Ed isn't something which many people use. It's installed here
  5. because it can be used by the patch program if you encounter an ed-based patch
  6. file. This happens rarely because diff-based patches are preferred these
  7. days.</para></note>
  8. <para>This package requires its patch to be applied before you can
  9. install it. This patch fixes a symlink vulnerability in
  10. <userinput>ed</userinput>. The <userinput>ed</userinput> executable
  11. creates files in <filename class="directory">/tmp</filename> with
  12. predictable names. By using various symlink attacks, it is possible
  13. to have ed write to files it should not, change the permissions of
  14. files, etc.</para>
  15. <para>Apply the patch:</para>
  16. <para><screen><userinput>patch -Np1 -i ../ed-&ed-patch-version;.patch</userinput></screen></para>
  17. <para>Prepare Ed to be compiled:</para>
  18. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  19. <para>Continue with compiling the package:</para>
  20. <para><screen><userinput>make</userinput></screen></para>
  21. <para>And finish off installing the package:</para>
  22. <para><screen><userinput>make install</userinput></screen></para>
  23. <para>We need to move the Ed binaries to the <filename
  24. class="directory">/bin</filename> directory so they may be used in
  25. the event that the <filename class="directory">/usr</filename>
  26. partition is unavailable.</para>
  27. <para><screen><userinput>mv /usr/bin/{ed,red} /bin</userinput></screen></para>
  28. </sect2>