From owner-freebsd-arch@FreeBSD.ORG Mon Oct 8 17:00:15 2012 Return-Path: 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 17A9D106566C; Mon, 8 Oct 2012 17:00:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 742368FC18; Mon, 8 Oct 2012 17:00:12 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q98H0L8l054292; Mon, 8 Oct 2012 20:00:21 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q98H09iQ064671; Mon, 8 Oct 2012 20:00:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q98H09IC064670; Mon, 8 Oct 2012 20:00:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 8 Oct 2012 20:00:08 +0300 From: Konstantin Belousov To: Brooks Davis Message-ID: <20121008170008.GE35915@deviant.kiev.zoral.com.ua> References: <20121008165230.GD23400@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xsYrt8mWir//dmFZ" Content-Disposition: inline In-Reply-To: <20121008165230.GD23400@lor.one-eyed-alien.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-arch@freebsd.org Subject: Re: [CFT] Importing NetBSD's pwcache(3) 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: Mon, 08 Oct 2012 17:00:15 -0000 --xsYrt8mWir//dmFZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 08, 2012 at 11:52:30AM -0500, Brooks Davis wrote: > I'm planning to import NetBSD's implementation and expansion > of pwcache(3). The main feature is that it adds is the new > functions gid_from_group(), pwcache_userdb(), pwcache_groupdb(), and > uid_from_user(). The *_from_*() functions do what you'd expect. The > pwcache*() functions allow you to implement alternative lookup > functions. >=20 > NetBSD's mtree and install use them to support alternate master.passwd > and group files. They use it to support image creation on non-NetBSD > systems. In principle this could eliminate the need to run mergemaster > before installworld after a new user or group is added to the system > (assuming of course that the admin isn't randomly renumbering users and > groups). >=20 > If you wish to test this patch, apply it and then delete > lib/libc/gen/pwcache.[3c] so the new versions in contrib are found. >=20 > The actual commit will include a copy from > vendor/NetBSD/libc-pwcache/dist to contrib/libc-pwcache. I noted this first on the branch, but waited for the official announcement, so thank you for doing the notification in advance. I dislike the addition of the random and mostly single-use stuff to libc. In particular, it falls into the application namespace. More, part of the functionality sounds much like NSS, but it is not. Can this be added either to libutil or might be to libnetbsd perhaps ? BTW, patch looks reversed. --xsYrt8mWir//dmFZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlBzBpgACgkQC3+MBN1Mb4gDAwCg9+ht0aUD3x+DxpO5QvNGIq2B IZIAn2NDsRGJmoldkBl3Y0lYmW1stOr8 =Me5W -----END PGP SIGNATURE----- --xsYrt8mWir//dmFZ--