This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nscd/13696] New: Add a --disable-nscd option to configure for disabling nscd implementation in glibc functions
- From: "benchan at chromium dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 15 Feb 2012 23:23:29 +0000
- Subject: [Bug nscd/13696] New: Add a --disable-nscd option to configure for disabling nscd implementation in glibc functions
- Auto-submitted: auto-generated
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.