Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2012 20:00:08 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Brooks Davis <brooks@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: [CFT] Importing NetBSD's pwcache(3)
Message-ID:  <20121008170008.GE35915@deviant.kiev.zoral.com.ua>
In-Reply-To: <20121008165230.GD23400@lor.one-eyed-alien.net>
References:  <20121008165230.GD23400@lor.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121008170008.GE35915>