From owner-freebsd-current Fri Jun 28 13:18:40 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D738737B401; Fri, 28 Jun 2002 13:17:59 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C66843E1E; Fri, 28 Jun 2002 13:17:46 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.4/8.12.4) with SMTP id g5SKHVbM028066; Fri, 28 Jun 2002 16:17:31 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 28 Jun 2002 16:17:30 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Peter Wemm Cc: Poul-Henning Kamp , Mike Barcroft , Robert Drehmel , current@FreeBSD.ORG, robert@FreeBSD.ORG Subject: Re: changing 'struct utmp' In-Reply-To: <20020628200729.30D19390F@overcee.wemm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 28 Jun 2002, Peter Wemm wrote: > > Please, if you're going to do it, do it right. > > Yep. Also: > - make a proper API to deal with it, otherwise things like xterm will trash > the utmp file all over again without a 'final solution'. > - make sure we can extend it in the future without having to do this all over > again. > - I'd quite like a variable sized .db file with a 'standard' getutent() style > interface to it. > - wtmp probably shouldn't be a .db file, but then again, it probably can. At one point, I hacked up a FreeBSD kernel to store utmp in kernel, since I needed fine-grained access control on utmp, and wanted to reduce the need for file-backed databases. I've long since lost the patches, but it actually worked fairly well -- I had to add a few more calls similar to "setlogin"/"getlogin", but adopted the same basic model: tie the information to the session. I kept wtmp in userland, however. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message