Subject: pkg/25701: security/chkrootkit
To: None <gnats-bugs@gnats.netbsd.org>
From: None <makoto@ki.nu>
List: pkgsrc-bugs
Date: 05/25/2004 19:15:34
>Number: 25701
>Category: pkg
>Synopsis: patch for NetBSD required on chklastlog
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 25 10:16:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Makoto Fujiwara
>Release: NetBSD 1.6ZG
>Organization:
KINU Corporation
>Environment:
System: NetBSD harry 1.6ZG NetBSD 1.6ZG (INSECURE-ZS-L2PB2-SHM) #0: Mon Dec 22 12:51:00 JST 2003 makoto@quick.ki.nu:/e2/20031206/sys/arch/macppc/compile/INSECURE-ZS-L2PB2-SHM macppc
Architecture: powerpc
Machine: macppc
>Description:
when chklastlog of chkrootkit invoked, we got following message
-------------
> chklastlog
unable to open lastlog-file /var/adm/lastlog
-------------
>How-To-Repeat:
cd security/chkrootkit
make install
rehash
chklastlog
>Fix:
This should be raised to upstream, but interim patch is here
Index: distinfo
===================================================================
RCS file: /e/celeron/CVSup/main/pkgsrc/security/chkrootkit/distinfo,v
retrieving revision 1.1.1.1
diff -u -a -r1.1.1.1 distinfo
--- distinfo 17 Feb 2004 15:33:52 -0000 1.1.1.1
+++ distinfo 25 May 2004 10:07:03 -0000
@@ -3,3 +3,4 @@
SHA1 (chkrootkit-0.43/chkrootkit.tar.gz) = 58e3693823a9b8ab9b6bb609d54b5716af332a00
Size (chkrootkit-0.43/chkrootkit.tar.gz) = 33355 bytes
SHA1 (patch-aa) = c47ecb09d02c710727420a3adfb7d8b62d721f2d
+SHA1 (patch-ab) = 0712a97401414857380fc2b0105dbd13694a772a
--- /dev/null Tue May 25 18:50:47 2004
+++ patches/patch-ab Tue May 25 19:06:47 2004
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- chklastlog.c~ Sat Dec 27 03:30:12 2003
++++ chklastlog.c Tue May 25 18:48:48 2004
+@@ -57,6 +57,10 @@
+ #define WTMP_FILENAME "/var/log/wtmp"
+ #define LASTLOG_FILENAME "/var/log/lastlog"
+ #endif
++#ifdef __NetBSD__
++#define WTMP_FILENAME "/var/log/wtmp"
++#define LASTLOG_FILENAME "/var/log/lastlog"
++#endif
+ #ifdef __OpenBSD__
+ #define WTMP_FILENAME "/var/log/wtmp"
+ #define LASTLOG_FILENAME "/var/log/lastlog"
>Release-Note:
>Audit-Trail:
>Unformatted: