From owner-freebsd-arch@FreeBSD.ORG Thu Apr 19 21:15:04 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 002D616A406; Thu, 19 Apr 2007 21:15:03 +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 9930513C4BB; Thu, 19 Apr 2007 21:15:03 +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 EE31017380; Thu, 19 Apr 2007 21:15:01 +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 l3JLF1gO046944; Thu, 19 Apr 2007 21:15:01 GMT (envelope-from phk@critter.freebsd.dk) To: Robert Watson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 19 Apr 2007 21:25:09 +0100." <20070419212253.L2913@fledge.watson.org> Date: Thu, 19 Apr 2007 21:15:01 +0000 Message-ID: <46943.1177017301@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Diomidis Spinellis , arch@FreeBSD.org, 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: Thu, 19 Apr 2007 21:15:04 -0000 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. -- 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.