From owner-freebsd-arch@FreeBSD.ORG Fri Apr 20 05:42:33 2007 Return-Path: X-Original-To: arch@FreeBSD.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E176E16A400; Fri, 20 Apr 2007 05:42:33 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 9FD2713C480; Fri, 20 Apr 2007 05:42:33 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.60.100]) by phk.freebsd.dk (Postfix) with ESMTP id 1DBA817380; Fri, 20 Apr 2007 05:42:31 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l3K5gV2r048539; Fri, 20 Apr 2007 05:42:31 GMT (envelope-from phk@critter.freebsd.dk) To: Diomidis Spinellis From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 20 Apr 2007 00:21:21 +0300." <4627DD51.9020003@aueb.gr> Date: Fri, 20 Apr 2007 05:42:31 +0000 Message-ID: <48538.1177047751@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: arch@FreeBSD.org, Robert Watson , re@FreeBSD.org Subject: Re: Accounting changes X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2007 05:42:34 -0000 In message <4627DD51.9020003@aueb.gr>, Diomidis Spinellis writes: >Poul-Henning Kamp wrote: >> In message <20070419212253.L2913@fledge.watson.org>, Robert Watson writes: >> >>>> __dev_t ac_tty; /* controlling tty */ >> >> This field is useless, nobody uses hardwired RS-232 terminals >> anymore. >> >> What we should do is add a systemcall or sysctl, so session creators >> like getty, sshd and similar can install a session indentifying string >> on the session, and then dump that in the accounting. >> >> sshd would log IP+port and possibly also credential used for auth. >> > >Isn't this purpose mostly served by joining the accounting record with >wtmp on the ll_line field to obtain the IP address from the ll_host field? The IP number alone is not a "session identifier", you want the ID of the credential that gave access as well. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.