Bug 447092 - restrict passwd database search to local files
Summary: restrict passwd database search to local files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpcbind
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-17 20:26 UTC by Ulrich Drepper
Modified: 2008-07-26 05:59 UTC (History)
0 users

Fixed In Version: 0.1.4-16.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-04 03:38:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ulrich Drepper 2008-05-17 20:26:14 UTC
Description of problem:
Due to an installation mistake (somehow rpm messed up) I ended up with an passwd
file which didn't have a rpc entry.  This meant that during startup the
getpwnam() call to determine the details for user rpc caused the normal process
for passwd lookups to be followed.  For me this meant after looking at
/etc/passwd the lookup tried to use NIS.  This of course deadlocked since as
part of the NIS lookup rpcbind has to be contacted.

The workaround is quite simple: use __nss_configure_lookup() to restrict the lookup.

Version-Release number of selected component (if applicable):
rpcbind-0.1.4-14.fc9

How reproducible:
always if you prepare

Steps to Reproduce:
1.remove rpc user from /etc/passwd
2.use "passwd: files nis" in /etc/nsswitch.conf
3.
  
Actual results:
hang

Expected results:
no hang, getpwnam() should return failure

Additional info:
Add a call like this at the beginning of the program:

  __nss_configure_lookup("passwd", "files");

Comment 1 Ulrich Drepper 2008-05-22 02:10:42 UTC
Also add

__nss_configure_lookup("services", "files);

On another system I had rpcbind hang in a lookup of a service.

Comment 2 Steve Dickson 2008-06-27 17:53:38 UTC
Fixed in rpcbind-0.1.4-15.fc9

Comment 3 Fedora Update System 2008-06-27 19:06:03 UTC
rpcbind-0.1.4-16.fc9 has been submitted as an update for Fedora 9

Comment 4 Fedora Update System 2008-06-28 22:14:37 UTC
rpcbind-0.1.4-16.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update rpcbind'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-5781

Comment 5 Fedora Update System 2008-07-04 03:38:50 UTC
rpcbind-0.1.4-16.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2008-07-26 05:59:57 UTC
rpcbind-0.1.4-16.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.