From owner-freebsd-hackers Wed Apr 3 17:40:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id EBDED37B432 for ; Wed, 3 Apr 2002 17:40:15 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020404014015.IONG18078.rwcrmhc51.attbi.com@InterJet.elischer.org>; Thu, 4 Apr 2002 01:40:15 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA28229; Wed, 3 Apr 2002 17:29:46 -0800 (PST) Date: Wed, 3 Apr 2002 17:29:44 -0800 (PST) From: Julian Elischer To: Ramkumar Chinchani Cc: "Tim J. Robbins" , freebsd-hackers@FreeBSD.ORG Subject: Re: Ptracing each other In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG if you consider that each process can only do damage with system calls, what you REALLY want is to use ktrace (or the truss equivalent syscalls) but why do you want the untrusted client to watch the watcher? it seems that you must end up in an infinite loop because it will see it doing the watching which will generate action which the other will see .... On Wed, 3 Apr 2002, Ramkumar Chinchani wrote: > > The requirement is that I have a theoretical framework where no process > trusts the other. So they watch (trace) each process. > > -Ram > > ==> Julian Elischer /5:09pm/Apr 3, 2002 <== > > [but I'm confused.. > [to trace a program you need to be gdb > [(or similar) why would one gdb gdb when it's gdbing you? > [Maybe you need to explain WHY rather than WHAT. > [ > [ > [On Wed, 3 Apr 2002, Ramkumar Chinchani wrote: > [ > [> > [> Track means to basically trace the execution and watch the events that > [> occur without any interprocess communication. > [> > [> -Ram > [> > [> ==> Julian Elischer /4:59pm/Apr 3, 2002 <== > [> > [> [that depends on what you mean by "track" > [> [ > [> [ > [> [On Wed, 3 Apr 2002, Ramkumar Chinchani wrote: > [> [ > [> [> > [> [> Can two processes track each other through the proc file system then? > [> [> > [> [> I want a scenario where process P1 and P2 track each others execution. > [> [> > [> [> Is this possible at all? > [> [> > [> [> Thanks. > [> [> > [> [> -Ram > [> [ > [> > [> > [ > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message