From owner-freebsd-ports Sun Sep 22 23:26:11 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F163C37B401 for ; Sun, 22 Sep 2002 23:26:09 -0700 (PDT) Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id C08DD43E3B for ; Sun, 22 Sep 2002 23:26:07 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.4/8.12.3) with ESMTP id g8N6Q3gD011673 for ; Mon, 23 Sep 2002 15:56:04 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Subject: kdump parser (for checking installed files) From: "Daniel O'Connor" To: freebsd-ports@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 23 Sep 2002 15:56:02 +0930 Message-Id: <1032762363.4955.79.camel@chowder.gsoft.com.au> Mime-Version: 1.0 X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I wrote this tcl program to parse kdump output and produce a list of created and removed files. http://www.gsoft.com.au/~doconnor/parse-kdump.tcl Note that it works on SUID and statically linked files (the former only works if you are root, but I don't anticipate this to be a problem). It IS slow as hell, but hey, it does seem to work :) Also, if you run ktrace on linux binaries you had better run linux_kdump otherwise you'll get some odd results :) (This is a bit of a problem because if you are tracing descendants then you have no way of knowing which one is a linux proc.. ): PS please CC me as I'm not on this list. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message