Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Sep 1998 17:25:30 -0500
From:      "Gregory D. Moncreaff" <moncrg@bt340707.res.ray.com>
To:        hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   snoop device, watch, non superuser access
Message-ID:  <35F5AED9.FA51C6@bt340707.res.ray.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35F5AED9.FA51C6>