Red Hat Bugzilla – Bug 263081
autofs 5 and large groups
Last modified: 2008-05-21 10:37:48 EDT
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):
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
automount: do_mount_indirect: failed to get group info from getgrgid_r
logfiles filled with error messages
No error messages
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.
Created attachment 178841 [details]
Patch fixing group lookups for large groups
(In reply to comment #1)
> Created an attachment (id=178841) 
> 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.
(In reply to comment #2)
> (In reply to comment #1)
> > Created an attachment (id=178841)  
> > 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?
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.
(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.
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
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.