From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13904 invoked by alias); 15 Feb 2012 23:24:27 -0000 Received: (qmail 13891 invoked by uid 22791); 15 Feb 2012 23:24:26 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Feb 2012 23:23:32 +0000 From: "benchan at chromium dot org" To: glibc-bugs@sources.redhat.com Subject: [Bug nscd/13696] New: Add a --disable-nscd option to configure for disabling nscd implementation in glibc functions Date: Wed, 15 Feb 2012 23:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nscd X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: benchan at chromium dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00121.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13696 Bug #: 13696 Summary: Add a --disable-nscd option to configure for disabling nscd implementation in glibc functions Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: nscd AssignedTo: drepper.fsp@gmail.com ReportedBy: benchan@chromium.org Classification: Unclassified Created attachment 6214 --> http://sourceware.org/bugzilla/attachment.cgi?id=6214 Patch to add --disable-nscd to configure Background ---------- Although the nscd client code can fall back when it fails to contact the nscd server, we may sometimes need to avoid that from happening (e.g. we need to disallow the "socket" system call in a sandboxed environment) if we know that no nscd server is enabled on a target system. Thus, we need to compile glibc without using the nscd implementation in its functions. Problem ------- The following glibc Makefiles currently hardcode -DUSE_NSCD=1 to use the nscd implementation for certain glibc functions, which makes it inconvenient to disable the nscd implementation. grp/Makefile inet/Makefile posix/Makefile pwd/Makefile Proposed Solution ----------------- It would be nicer if we have a --disable-nscd option in configure to control whether USE_NSCD should be defined. The attached patch implements the proposed changes on top of the current glibc master branch. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.