Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 263081

Summary: autofs 5 and large groups
Product: Red Hat Enterprise Linux 5 Reporter: Ryan Thomas <ryan.thomas>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: jmoyer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: RHBA-2008-0354 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 14:37:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 425910    
Attachments:
Description Flags
Patch fixing group lookups for large groups none

Description Ryan Thomas 2007-08-29 12:01:31 UTC
Description of problem: autofs 5 has issues with mounts owned by groups with
large numbers of members.


Version-Release number of selected component (if applicable):
autofs-5.0.1-0.rc2.43.0.2


How reproducible: 100%


Steps to Reproduce:
1. Create a group with a thousand members
2. chown a directory to be mounted so that it is owned by the large group
3. attempt mounting the directory
4. The directory seems to mount but an error like the following is written to
the log.
automount[4949]: do_mount_indirect: failed to get group info from getgrgid_r
  
Actual results:
logfiles filled with error messages

Expected results:
No error messages

Additional info:
I've prepared a patch for this issue that I am using locally.  It or a cleaned
up version should be included in an update to the autofs package.

Comment 1 Ryan Thomas 2007-08-29 12:01:31 UTC
Created attachment 178841 [details]
Patch fixing group lookups for large groups

Comment 2 Ian Kent 2007-08-29 12:20:26 UTC
(In reply to comment #1)
> Created an attachment (id=178841) [edit]
> Patch fixing group lookups for large groups
> 

Ha .. I thought the buffer space might end up a
problem at some point.

Thanks for the patch, I'll use it after a bit of
re-formating and the like.

Ian


Comment 3 Ian Kent 2007-08-29 12:28:54 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=178841) [edit] [edit]
> > Patch fixing group lookups for large groups
> > 
> 
> Ha .. I thought the buffer space might end up a
> problem at some point.

It's strange that getgrgid_r works at all when more
space than _SC_GETGR_R_SIZE_MAX is needed.

But the patch works ok for you, yes?

Ian

Comment 4 Ryan Thomas 2007-08-29 12:46:41 UTC
It seems to.  I don't get the error messages.  I don't know what what security
aspect of mounting was actually broken when the getgrgid_r call failed so I
can't test that my patch plugged an access bug.

Comment 5 Ian Kent 2007-08-29 12:56:44 UTC
(In reply to comment #4)
> It seems to.  I don't get the error messages.  I don't know what what security
> aspect of mounting was actually broken when the getgrgid_r call failed so I
> can't test that my patch plugged an access bug.

I'll see what I can find out.
Thanks

Comment 6 RHEL Program Management 2007-10-16 03:43:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 12 errata-xmlrpc 2008-05-21 14:37:48 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0354.html