From owner-freebsd-hackers Thu Sep 17 14:38:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA10925 for freebsd-hackers-outgoing; Thu, 17 Sep 1998 14:38:03 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from foobar.franken.de (foobar.franken.de [194.94.249.81]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA10722 for ; Thu, 17 Sep 1998 14:37:25 -0700 (PDT) (envelope-from logix@foobar.franken.de) Received: (from logix@localhost) by foobar.franken.de (8.8.8/8.8.5) id XAA03246; Thu, 17 Sep 1998 23:35:18 +0200 (CEST) Message-ID: <19980917233517.22291@foobar.franken.de> Date: Thu, 17 Sep 1998 23:35:17 +0200 From: Harold Gutch To: John Polstra , bwithrow@BayNetworks.COM Cc: hackers@FreeBSD.ORG Subject: Re: GDB modifies shared libraries? References: <199809171409.KAA02717@tuva.engeast.baynetworks.com> <199809171632.JAA11090@austin.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <199809171632.JAA11090@austin.polstra.com>; from John Polstra on Thu, Sep 17, 1998 at 09:32:08AM -0700 X-Organisation: BatmanSystemDistribution X-Mission: To free the world from the Penguin Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Sep 17, 1998 at 09:32:08AM -0700, John Polstra wrote: > > GDB problem. But I don't understand how GDB can override protections > > on /usr/lib/libc.so.3.1 in order to change its date. This seems like > > an OS bug. > > Yes, it is a kernel bug. As far as I know, it doesn't actually modify > the file -- it just "updates" it with its original contents, changing > the timestamp. > Is this really all this bug can do ? Update an arbitrary (?) file with it's original contents again ? Or is it possible to overwrite arbitrary files with arbitrary or random data if "options KTRACE" (or whatever allows this in the kernel) is in the configfile ? I don't believe that this is be possible without "kernel-help", that is without a kernel including some specific stuff (KTRACE ?). -- bye, logix Sleep is an abstinence syndrome wich occurs due to lack of caffein. Wed Mar 4 04:53:33 CET 1998 #unix, ircnet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message