From owner-freebsd-arch@FreeBSD.ORG Thu Apr 19 21:42:40 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 5530B16A415; Thu, 19 Apr 2007 21:42:40 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 95F2713C4EE; Thu, 19 Apr 2007 21:42:35 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l3JLQiJ3003749; Fri, 20 Apr 2007 07:26:44 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l3JLQiFH003748; Fri, 20 Apr 2007 07:26:44 +1000 (EST) (envelope-from peter) Date: Fri, 20 Apr 2007 07:26:44 +1000 From: Peter Jeremy To: Poul-Henning Kamp Message-ID: <20070419212644.GG828@turion.vk2pj.dyndns.org> References: <20070419212253.L2913@fledge.watson.org> <46943.1177017301@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fba/0zbH8Xs+Fj9o" Content-Disposition: inline In-Reply-To: <46943.1177017301@critter.freebsd.dk> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.14 (2007-02-12) Cc: Diomidis Spinellis , 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: Thu, 19 Apr 2007 21:42:40 -0000 --Fba/0zbH8Xs+Fj9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Apr-19 21:15:01 +0000, 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. In theory, something that creates a session should be logging a utmp record that links the assigned PTY to the session initiator. The PTY name reflects the session identifier and the utmp record can be used to work out who/how the session was initiated. This approach seems more reasonable than recording complete session information in each raw accounting record. In practice, not all sessions have utmp records and many utilities are not recording logouts. Fixing this and maybe adding information relating to credentials would seem to be less intrusive than modifying ac_tty. --=20 Peter Jeremy --Fba/0zbH8Xs+Fj9o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGJ96U/opHv/APuIcRApqMAJ9euT/gB2ASzOtd4pCWX8r6pYA+WACfU/8h e96wCQxnsGmp2L5zQ80zi1c= =Q+kH -----END PGP SIGNATURE----- --Fba/0zbH8Xs+Fj9o--