mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/mnemoc/chkrootkit/head.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -Naur chkrootkit-0.44.orig/chkrootkit chkrootkit-0.44/chkrootkit
  20. --- chkrootkit-0.44.orig/chkrootkit 2004-09-01 14:27:28.000000000 +0100
  21. +++ chkrootkit-0.44/chkrootkit 2004-11-10 16:06:21.000000000 +0000
  22. @@ -1054,7 +1054,7 @@
  23. getCMD() {
  24. RUNNING=`${ps} ${ps_cmd} | ${egrep} "${L_REGEXP}${1}${R_REGEXP}" | \
  25. - ${egrep} -v egrep | ${egrep} -v chkrootkit | ${head} -1 | \
  26. + ${egrep} -v egrep | ${egrep} -v chkrootkit | ${head} -n 1 | \
  27. ${awk} '{ print $5 }'`
  28. for i in ${ROOTDIR}${RUNNING} ${ROOTDIR}usr/sbin/${1} `loc ${1} ${1} $pth`
  29. @@ -2178,7 +2178,7 @@
  30. TCPD_INFECTED_LABEL="p1r0c4|hack|/dev/xmx|/dev/hdn0|/dev/xdta|/dev/tux"
  31. [ -r ${ROOTDIR}etc/inetd.conf ] &&
  32. - CMD=`${egrep} '^[^#].*tcpd' ${ROOTDIR}etc/inetd.conf | ${head} -1 | \
  33. + CMD=`${egrep} '^[^#].*tcpd' ${ROOTDIR}etc/inetd.conf | ${head} -n 1 | \
  34. ${awk} '{ print $6 }'`
  35. if ${ps} auwx | ${egrep} xinetd | ${egrep} -v grep >/dev/null 2>&1; then
  36. CMD=`loc tcpd tcpd $pth`