]> git.pld-linux.org Git - packages/tcp_wrappers.git/commitdiff
- split from tcp_wrappers-fix.patch
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 7 Jul 2007 00:56:20 +0000 (00:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    tcp_wrappers-docs.patch -> 1.1
    tcp_wrappers-safe_finger.patch -> 1.1

tcp_wrappers-docs.patch [new file with mode: 0644]
tcp_wrappers-safe_finger.patch [new file with mode: 0644]

diff --git a/tcp_wrappers-docs.patch b/tcp_wrappers-docs.patch
new file mode 100644 (file)
index 0000000..445dc33
--- /dev/null
@@ -0,0 +1,56 @@
+diff -urN tcp_wrappers_7.6.orig/README tcp_wrappers_7.6/README
+--- tcp_wrappers_7.6.orig/README       Mon Dec 13 13:58:15 1999
++++ tcp_wrappers_7.6/README    Mon Dec 13 14:09:31 1999
+@@ -169,7 +169,7 @@
+ 2) The advanced way: leave the network daemons alone and modify the
+    inetd configuration file.  For example, an entry such as:
+-     tftp  dgram  udp  wait  root  /usr/etc/tcpd  in.tftpd -s /tftpboot
++     tftp  dgram  udp  wait  root  /usr/sbin/tcpd  in.tftpd -s /tftpboot
+    When a tftp request arrives, inetd will run the wrapper program
+    (tcpd) with a process name `in.tftpd'.  This is the name that the
+@@ -821,12 +821,12 @@
+ Then perform the following edits on the inetd configuration file
+ (usually /etc/inetd.conf or /etc/inet/inetd.conf):
+-    finger  stream  tcp     nowait  nobody  /usr/etc/in.fingerd     in.fingerd
+-                                            ^^^^^^^^^^^^^^^^^^^
++    finger  stream  tcp     nowait  nobody  /usr/sbin/in.fingerd     in.fingerd
++                                            ^^^^^^^^^^^^^^^^^^^^
+ becomes:
+-    finger  stream  tcp     nowait  nobody  /usr/etc/tcpd           in.fingerd
+-                                            ^^^^^^^^^^^^^
++    finger  stream  tcp     nowait  nobody  /usr/sbin/tcpd           in.fingerd
++                                            ^^^^^^^^^^^^^^
+ Send a `kill -HUP' to the inetd process to make the change effective.
+ Some IRIX inetd implementations require that you first disable the
+ finger service (comment out the finger service and `kill -HUP' the
+@@ -873,7 +873,7 @@
+ Instead you can specify, in the inetd configuration file, an absolute
+ path name for the daemon process name.  For example,
+-    ntalk   dgram   udp     wait    root    /usr/etc/tcpd /usr/local/lib/ntalkd
++    ntalk   dgram   udp     wait    root    /usr/sbin/tcpd /usr/sbin/in.ntalkd
+ When the daemon process name is an absolute path name, tcpd ignores the
+ value of the REAL_DAEMON_DIR constant, and uses the last path component
+@@ -940,7 +940,7 @@
+ you can look up the name from the inetd configuration file. Coming back
+ to the tftp example in the tutorial section above:
+-    tftp  dgram  udp  wait  root  /usr/etc/tcpd  in.tftpd -s /tftpboot
++    tftp  dgram  udp  wait  root  /usr/sbin/tcpd  in.tftpd -s /tftpboot
+ This entry causes the inetd to run the wrapper program (tcpd) with a
+ process name `in.tftpd'.  This is the name that the wrapper will use
+@@ -976,7 +976,7 @@
+ listener, but it should be registered in the inetd configuration file.
+ For example:
+-    smtp    stream  tcp     nowait  root    /usr/etc/tcpd /usr/lib/sendmail -bs
++    smtp    stream  tcp     nowait  root    /usr/sbin/tcpd /usr/lib/sendmail -bs
+ You will still need to run one sendmail background process to handle
+ queued-up outgoing mail. A command like:
diff --git a/tcp_wrappers-safe_finger.patch b/tcp_wrappers-safe_finger.patch
new file mode 100644 (file)
index 0000000..10ce50b
--- /dev/null
@@ -0,0 +1,20 @@
+diff -urN tcp_wrappers_7.6.orig/safe_finger.c tcp_wrappers_7.6/safe_finger.c
+--- tcp_wrappers_7.6.orig/safe_finger.c        Mon Dec 13 13:58:15 1999
++++ tcp_wrappers_7.6/safe_finger.c     Mon Dec 13 14:15:09 1999
+@@ -31,14 +31,14 @@
+ /* Local stuff */
+-char    path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin";
++char    path[] = "PATH=/bin:/usr/bin:/sbin:/usr/sbin";
+ #define       TIME_LIMIT      60              /* Do not keep listinging forever */
+ #define       INPUT_LENGTH    100000          /* Do not keep listinging forever */
+ #define       LINE_LENGTH     128             /* Editors can choke on long lines */
+ #define       FINGER_PROGRAM  "finger"        /* Most, if not all, UNIX systems */
+ #define       UNPRIV_NAME     "nobody"        /* Preferred privilege level */
+-#define       UNPRIV_UGID     32767           /* Default uid and gid */
++#define       UNPRIV_UGID     99              /* Default uid and gid */
+ int     finger_pid;
This page took 0.075428 seconds and 4 git commands to generate.