From owner-freebsd-hackers Thu Dec 7 12:30:25 2000 From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 7 12:30:23 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from link.mirror.org (link.mirror.org [216.38.7.35]) by hub.freebsd.org (Postfix) with ESMTP id BA1F737B400 for ; Thu, 7 Dec 2000 12:30:22 -0800 (PST) Received: from hal (14-d13-1.svg1.netcom.no [212.45.183.143]) by link.mirror.org (8.7.5/8.7.3) with ESMTP id QAA12069 for ; Thu, 7 Dec 2000 16:58:48 -0500 Date: Thu, 7 Dec 2000 21:30:54 +0100 (CET) From: Torbjorn Kristoffersen X-Sender: To: FreeBSD-Hackers Subject: Kernel question (detecting a user log-on) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Hackers, I'm wondering about two things, how does the kernel detect that a user logs on a tty, and what should I know if I was to write a kernel module that detects it (And does something about it)? Must I read the TCP in-packets for port 23 and detect if a user logged on? I'm pretty unsure about this.. I know it could easier be implemented in userland by reading the _PATH_UTMP file, but I'm more interested in doing it in kernel space. Thanks in advance -- Torbjorn Kristoffersen sgt@netcom.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message