[chkrootkit] Add patch.
Jon Ciesla
limb at fedoraproject.org
Tue Oct 21 15:21:14 UTC 2014
commit 52d1f1ae28d8677fe5ae3970fe0c4957cb86c1ee
Author: Jon Ciesla <limburgher at gmail.com>
Date: Tue Oct 21 10:21:17 2014 -0500
Add patch.
chkrootkit-suckit.patch | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/chkrootkit-suckit.patch b/chkrootkit-suckit.patch
new file mode 100644
index 0000000..7a1d579
--- /dev/null
+++ b/chkrootkit-suckit.patch
@@ -0,0 +1,19 @@
+diff -ru chkrootkit-0.50-orig/chkrootkit chkrootkit-0.50/chkrootkit
+--- chkrootkit-0.50-orig/chkrootkit 2014-05-21 12:28:56.000000000 +0100
++++ chkrootkit-0.50/chkrootkit 2014-10-03 16:06:48.000000000 +0100
+@@ -989,7 +989,14 @@
+ if [ ${SYSTEM} != "HP-UX" ] && ( ${strings} ${ROOTDIR}sbin/init | ${egrep} 'HOME=' || \
+ cat ${ROOTDIR}/proc/1/maps | ${egrep} "init." ) >/dev/null 2>&1
+ then
+- echo "Warning: ${ROOTDIR}sbin/init INFECTED"
++ #echo "Warning: ${ROOTDIR}sbin/init INFECTED"
++ # ignore false positive (bugzilla #636231)
++ readlink -f ${ROOTDIR}sbin/init|${egrep} -q /systemd$
++ if [ $? -eq 0 ]; then
++ if [ "${QUIET}" != "t" ]; then echo "nothing found"; fi
++ else
++ echo "Warning: ${ROOTDIR}sbin/init INFECTED"
++ fi
+ else
+ if [ -d ${ROOTDIR}/dev/.golf ]; then
+ echo "Warning: Suspect directory ${ROOTDIR}dev/.golf"
More information about the scm-commits
mailing list