From owner-freebsd-hackers Tue Sep 8 14:41:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA18073 for freebsd-hackers-outgoing; Tue, 8 Sep 1998 14:41:08 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gatekeeper.ray.com (gatekeeper.ray.com [138.125.162.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA18067 for ; Tue, 8 Sep 1998 14:41:06 -0700 (PDT) (envelope-from moncrg@bt340707.res.ray.com) Received: (mailer@localhost) by gatekeeper.ray.com (8.8.7/8.8.7) id RAA07021 for ; Tue, 8 Sep 1998 17:33:20 -0400 (EDT) Received: from bt340707.res.ray.com/138.125.142.35() by gatekeeper.ray.com id sma.905290426.018191; Tue Sep 8 17:33:48 1998 Received: from bt340707.res.ray.com (localhost [127.0.0.1]) by bt340707.res.ray.com (8.8.8/8.8.7) with ESMTP id RAA00463 for ; Tue, 8 Sep 1998 17:25:30 -0500 (EST) (envelope-from moncrg@bt340707.res.ray.com) Message-ID: <35F5AED9.FA51C6@bt340707.res.ray.com> Date: Tue, 08 Sep 1998 17:25:30 -0500 From: "Gregory D. Moncreaff" X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.7-RELEASE i386) MIME-Version: 1.0 To: hackers Subject: snoop device, watch, non superuser access Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG one of my users wants to capture data from one of his ttys, including data that is redirected to it. doing a man -k on tty, only "script" and "watch" seemed useful, but only watch could catch the redirection right now watch only allows superuser access... is it possible that the snp(4)/watch(8) could be updated so that a user could watch any tty that 'belongs' to them (as from ps -aux)? I'm guessing that [tty_snoop.c] could follow the process group chain to see if the requested devices corresponds to them [proc.h] comments, suggestions? -- Greg Moncreaff, Senior Software Engineer, CNS/ATN Raytheon Systems Company, Mailstop 2.2.2507 Raytheon 1001 Boston Post Road East, Marlboro, MA 01752 USA 508.490.2048, 508.490.2086 fax -- Disclaimer: "this is my personal opinion and not that of my employer" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message