From owner-freebsd-current@FreeBSD.ORG Thu Nov 2 08:22:16 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 069EC16A403 for ; Thu, 2 Nov 2006 08:22:16 +0000 (UTC) (envelope-from bushman@freebsd.org) Received: from mail.r61.net (mail.r61.net [195.208.245.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C1E643D7E for ; Thu, 2 Nov 2006 08:22:14 +0000 (GMT) (envelope-from bushman@freebsd.org) Received: from stinger.cc.rsu.ru (stinger.cc.rsu.ru [195.208.252.82]) (authenticated bits=0) by mail.r61.net (8.13.8/8.13.8) with ESMTP id kA28M9xr067923 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 2 Nov 2006 11:22:10 +0300 (MSK) (envelope-from bushman@freebsd.org) From: Michael Bushkov Organization: Rostov State University To: freebsd-current@freebsd.org Date: Thu, 2 Nov 2006 12:21:53 +0400 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611021121.54605.bushman@freebsd.org> X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on asterix.r61.net X-Virus-Status: Clean Subject: [PATCH] nsswitch modules and libc separation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2006 08:22:16 -0000 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