[CFT] Importing NetBSD's pwcache(3)
Konstantin Belousov
kostikbel at gmail.com
Mon Oct 8 17:00:15 UTC 2012
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.
>
> 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).
>
> 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.
>
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20121008/5f76f257/attachment.pgp
More information about the freebsd-arch
mailing list