[PATCH] nsswitch modules and libc separation

From: Michael Bushkov <bushman_at_freebsd.org>
Date: Thu, 2 Nov 2006 12:21:53 +0400
Hello,
During the past summer of code I've been working with nsswitch subsystem and 
nss_ldap module. Unfortunately, my mentor seems to be busy or away at the 
moment, so I'm stuck with reviewing and submitting my work. There are several 
things that had been done during the summer of code 
(http://www.freebsd.org/news/status/report-june-2006-oct-2006.html#Nss-LDAP-importing-and-nsswitch-subsystem-improvement). 
I suggest, that the first thing out of these that should be committed is the 
patch for nsswitch modules and libc separation.

It resides here:
http://www.rsu.ru/~bushman/soc2006/nss_libc_sep_2.diff 

Shortly, the idea of this patch is to move all nsswitch modules code out from 
the libc into separate shared objects. This will make nsswitch subsystem more 
generic and flexible. To avoid problems with statically linked binaries, 
nsswitch modules are linked into the libc.a during the build.

The detailed description of the changes made is on the wiki: 
http://wikitest.freebsd.org/NsswitchModulesSeparation.

Besides these changes, patch includes some tiny changes to the nsswitch 
caching implementation, which mainly address proper handling of the malloc 
failures.

Please test the patch and send me your comments and suggestions. If everything 
is fine, I hope I'll be able to commit it to -CURRENT soon.

-- 
With best regards,
Michael Bushkov
Rostov State University
Received on Thu Nov 02 2006 - 07:22:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:02 UTC