Blame SOURCES/tftp-0.42-tftpboot.patch

0805be
diff -up tftp-hpa-0.48/tftp-xinetd.tftpboot tftp-hpa-0.48/tftp-xinetd
0805be
--- tftp-hpa-0.48/tftp-xinetd.tftpboot	2007-01-31 00:51:05.000000000 +0100
0805be
+++ tftp-hpa-0.48/tftp-xinetd	2008-05-20 12:05:53.000000000 +0200
0805be
@@ -10,7 +10,7 @@ service tftp
0805be
 	wait			= yes
0805be
 	user			= root
0805be
 	server			= /usr/sbin/in.tftpd
0805be
-	server_args		= -s /tftpboot
0805be
+	server_args		= -s /var/lib/tftpboot
0805be
 	disable			= yes
0805be
 	per_source		= 11
0805be
 	cps			= 100 2
0805be
diff -up tftp-hpa-0.48/README.security.tftpboot tftp-hpa-0.48/README.security
0805be
--- tftp-hpa-0.48/README.security.tftpboot	2008-05-29 17:36:32.000000000 +0200
0805be
+++ tftp-hpa-0.48/README.security	2008-05-29 17:37:21.000000000 +0200
0805be
@@ -17,10 +17,10 @@ probably the following:
0805be
 
0805be
 1. Create a separate "tftpd" user and group only used for tftpd;
0805be
 2. Have all your boot files in a single directory tree (usually called 
0805be
-   /tftpboot).
0805be
-3. Specify "-p -u tftpd -s /tftpboot" on the tftpd command line; if
0805be
+   /var/lib/tftpboot).
0805be
+3. Specify "-p -u tftpd -s /var/lib/tftpboot" on the tftpd command line; if
0805be
    you want clients to be able to create files use
0805be
-   "-p -c -U 002 -u tftpd -s /tftpboot" (replace 002 with whatever
0805be
+   "-p -c -U 002 -u tftpd -s /var/lib/tftpboot" (replace 002 with whatever
0805be
    umask is appropriate for your setup.)
0805be
 
0805be
 	       =======================================
0805be
@@ -40,12 +40,12 @@ directly.  Thus, if your /etc/inetd.conf
0805be
 line):
0805be
 
0805be
 tftp	dgram	udp	wait	root	/usr/sbin/tcpd
0805be
-/usr/sbin/in.tftpd -s /tftpboot -r blksize
0805be
+/usr/sbin/in.tftpd -s /var/lib/tftpboot -r blksize
0805be
 
0805be
 ... it's better to change to ...
0805be
 
0805be
 tftp	dgram	udp	wait	root	/usr/sbin/in.tftpd
0805be
-in.tftpd -s /tftpboot -r blksize
0805be
+in.tftpd -s /var/lib/tftpboot -r blksize
0805be
 
0805be
 You should make sure that you are using "wait" option in tftpd; you
0805be
 also need to have tftpd spawned as root in order for chroot (-s) to
0805be
diff -up tftp-hpa-0.48/tftpd/sample.rules.tftpboot tftp-hpa-0.48/tftpd/sample.rules
0805be
--- tftp-hpa-0.48/tftpd/sample.rules.tftpboot	2008-05-29 17:38:46.000000000 +0200
0805be
+++ tftp-hpa-0.48/tftpd/sample.rules	2008-05-29 17:38:05.000000000 +0200
0805be
@@ -30,5 +30,5 @@ rg	\\		/		# Convert backslashes to slash
0805be
 rg	\#		@		# Convert hash marks to @ signs
0805be
 rg	/../		/..no../	# Convert /../ to /..no../
0805be
 e	^ok/				# These are always ok
0805be
-r	^[^/]		/tftpboot/\0	# Convert non-absolute files
0805be
+r	^[^/]		/var/lib/tftpboot/\0	# Convert non-absolute files
0805be
 a	\.pvt$				# Reject requests for private files