Ticket #55: portmap.patch
File portmap.patch, 7.0 KB (added by , 22 years ago) |
---|
-
basicnet.ent
diff --exclude=CVS -Naur ./basicnet.ent /home/billy/NEWBLFS/BOOK/basicnet/basicnet.ent
old new 23 23 <!ENTITY % telnet SYSTEM "netprogs/telnet/telnet.ent"> 24 24 <!ENTITY % cvs SYSTEM "netprogs/cvs/cvs.ent"> 25 25 <!ENTITY % wget SYSTEM "netprogs/wget/wget.ent"> 26 <!ENTITY % portmap SYSTEM "netprogs/portmap/portmap.ent"> 26 27 %ncftp; 27 28 %telnet; 28 29 %cvs; 29 30 %wget; 31 %portmap; 30 32 31 33 <!-- Basic Networking Utilities --> 32 34 <!ENTITY basicnet-netutils SYSTEM "netutils/netutils.xml"> -
netprogs/netprogs.xml
diff --exclude=CVS -Naur ./netprogs/netprogs.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/netprogs.xml
old new 7 7 &telnet; 8 8 &cvs; 9 9 &wget; 10 &portmap; 10 11 11 12 </chapter> -
netprogs/portmap/portmap-config.xml
diff --exclude=CVS -Naur ./netprogs/portmap/portmap-config.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-config.xml
old new 1 <sect2> 2 <title>Configuring portmap</title> 3 4 <sect3><title>Config files</title> 5 <para><userinput>/etc/rc.d/init.d/portmap</userinput></para> 6 </sect3> 7 8 <sect3><title>Create the portmap boot script</title> 9 10 <para><screen><userinput> 11 cat > /etc/rc.d/init.d/portmap << "EOF" 12 #!/bin/sh 13 # Begin /etc/rc.d/init.d/portmap 14 15 source /etc/rc.d/init.d/functions 16 17 case "$1" in 18 start) 19 echo "Starting RPC Portmap" 20 loadproc /sbin/portmap 21 ;; 22 23 stop) 24 echo "Stopping Portmap" 25 killproc /sbin/portmap 26 ;; 27 28 restart) 29 $0 stop 30 /usr/bin/sleep 1 31 $0 start 32 ;; 33 34 *) 35 echo "Usage: $0 {start|stop|restart}" 36 exit 1 37 ;; 38 39 esac 40 41 # End /etc/rc.d/init.d/portmap 42 EOF 43 chmod 754 /etc/rc.d/init.d/portmap && 44 cd /etc/rc.d/init.d && 45 ln -sf ../init.d/portmap ../rc0.d/K79portmap && 46 ln -sf ../init.d/portmap ../rc1.d/K79portmap && 47 ln -sf ../init.d/portmap ../rc2.d/K79portmap && 48 ln -sf ../init.d/portmap ../rc3.d/S21portmap && 49 ln -sf ../init.d/portmap ../rc4.d/S21portmap && 50 ln -sf ../init.d/portmap ../rc5.d/S21portmap && 51 ln -sf ../init.d/portmap ../rc6.d/K79portmap 52 </userinput></screen></para> 53 </sect3> 54 55 </sect2> 56 -
netprogs/portmap/portmap-desc.xml
diff --exclude=CVS -Naur ./netprogs/portmap/portmap-desc.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-desc.xml
old new 1 <sect2> 2 <title>Contents</title> 3 4 <para>The portmap package contains 5 <userinput>portmap</userinput>, 6 <userinput>pmap_dump</userinput> and 7 <userinput>pmap_set</userinput>.</para> 8 </sect2> 9 10 <sect2><title>Description</title> 11 12 <sect3><title>portmap</title> 13 <para>portmap is the rpc port mapper.</para></sect3> 14 15 <sect3><title>pmap_dump</title> 16 <para>pmap_dump saves the port mapping table to an ascii file.</para></sect3> 17 18 <sect3><title>pmap_set</title> 19 <para>pmap_set restores the port mapping table from an ascii file.</para></sect3> 20 </sect2> 21 -
netprogs/portmap/portmap-exp.xml
diff --exclude=CVS -Naur ./netprogs/portmap/portmap-exp.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-exp.xml
old new 1 <sect2> 2 <title>Command explanations</title> 3 4 <para><userinput> 5 patch -Np1 -i ../portmap_5-1.diff : 6 </userinput> 7 This patch provides added security for the portmap package, 8 including only allowing portmap table changes from the local 9 host.</para> 10 11 </sect2> 12 -
netprogs/portmap/portmap-inst.xml
diff --exclude=CVS -Naur ./netprogs/portmap/portmap-inst.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-inst.xml
old new 1 <sect2> 2 <title>Installation of portmap</title> 3 4 <para>.</para> 5 6 <para>Install portmap with the following commands:</para> 7 8 <para><screen><userinput> 9 patch -Np1 -i ../portmap_5-1.diff && 10 make && 11 make install 12 </userinput></screen></para> 13 14 </sect2> 15 -
netprogs/portmap/portmap-intro.xml
diff --exclude=CVS -Naur ./netprogs/portmap/portmap-intro.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap-intro.xml
old new 1 <sect2> 2 <title>Introduction to portmap</title> 3 4 <screen> 5 Download location (HTTP): <ulink url="&portmap-download-http;"/> 6 Version used: &portmap-version; 7 Package size: &portmap-size; 8 Estimated Disk space required: &portmap-buildsize;</screen> 9 10 <para>Required patch</para> 11 12 <screen> 13 Download location (HTTP): <ulink url="&portmap-patch-http;"/> 14 </screen> 15 16 <para>The portmap package is a more secure replacement for the 17 original SUN portmap package. Portmap is used to forward rpc 18 requests to rpc daemons such as NFS and NIS.</para> 19 20 </sect2> -
netprogs/portmap/portmap.ent
diff --exclude=CVS -Naur ./netprogs/portmap/portmap.ent /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap/portmap.ent
old new 1 <!ENTITY portmap SYSTEM "../portmap.xml"> 2 <!ENTITY portmap-intro SYSTEM "portmap-intro.xml"> 3 <!ENTITY portmap-inst SYSTEM "portmap-inst.xml"> 4 <!ENTITY portmap-exp SYSTEM "portmap-exp.xml"> 5 <!ENTITY portmap-desc SYSTEM "portmap-desc.xml"> 6 <!ENTITY portmap-config SYSTEM "portmap-config.xml"> 7 <!ENTITY portmap-buildsize "250 KB"> 8 <!ENTITY portmap-version "5"> 9 10 <!ENTITY portmap-download-http 11 "http://files.ichilton.co.uk/nfs/portmap_5.orig.tar.gz"> 12 <!ENTITY portmap-patch-http "http://files.ichilton.co.uk/nfs/portmap_5-1.diff.gz"> 13 <!ENTITY portmap-size "20 KB"> -
netprogs/portmap.xml
diff --exclude=CVS -Naur ./netprogs/portmap.xml /home/billy/NEWBLFS/BOOK/basicnet/netprogs/portmap.xml
old new 1 <sect1 id="portmap" xreflabel="portmap-&portmap-version;"> 2 <?dbhtml filename="portmap.html" dir="basicnet"?> 3 <title>portmap-&portmap-version;</title> 4 5 &portmap-intro; 6 &portmap-inst; 7 &portmap-exp; 8 &portmap-config; 9 &portmap-desc; 10 11 </sect1> 12