From owner-freebsd-current Mon Oct 7 17:21:21 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA12199 for current-outgoing; Mon, 7 Oct 1996 17:21:21 -0700 (PDT) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA12193 for ; Mon, 7 Oct 1996 17:21:19 -0700 (PDT) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.8.0/CET-v2.1) with SMTP id AAA19344 for ; Tue, 8 Oct 1996 00:21:17 GMT Date: Tue, 8 Oct 1996 09:21:16 +0900 (JST) From: Michael Hancock To: current@FreeBSD.org Subject: bpatch (was Re: secure level diffs to kern_mib.c, LINT) In-Reply-To: <199610071049.UAA26363@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk What's the history of bpatch? Did we ever have one? Mike Hancock --------------- BPATCH(1) BSD Reference Manual BPATCH(1) NAME bpatch - patches a.out files, including kernel and /dev/kmem SYNOPSIS bpatch [-bcwls] [-r] [-N namelist] [-M memfile] location [value] DESCRIPTION The bpatch utility is a quick hack that allows patching of values in a.out(5) format files, including kernel or /dev/kmem for the running ker- nel. location is a symbol name, or a decimal/hex/octal number. value is the value to be stored, according to the type options. The type options specify the value type to be written: -b Specify value type as 'byte as number' -c Specify value type as 'byte as character' -w Specify value type as 'short/u_short' -l Specify value type as 'long/u_long' -s Specify value type as 'string' The -r option indicates that the running kernel is being patched rather than a.out. The -N namelist option can be used to specify the name of the kernel namelist file to be used. The -M memfile option can be used to specify the name of the memory file to be used, this implies -r.