Red Hat Bugzilla – Bug 218616
multiple master map entries with the same key are handled improperly
Last modified: 2007-11-30 17:07:38 EST
Description of problem:
Given an auto.master with the following:
The correct behaviour is to only incorporate the contents of the /etc/home map
into the /home dir. Autofs v5.0.1-0.rc2.27 will instead include the contents of
both /etc/auto.home and /etc/auto.home2.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Create an auto.master map with the following entries:
/home /etc/auto.home -browse
/home /etc/auto.home2 -browse
Start the automounter:
# service autofs start
Perform an ls of /home:
# ls /home
Currently, the directory listing will include foo and bar. If things worked
properly, only foo would be present in the directory listing.
Given that this is a common way to override site-wide default maps, I think this
problem needs to be addressed in the short term.
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
Jeff says this is a serious correctness issue - when browsable maps are used,
people will see and be able to mount directory entries that should not be there.
It is also a regression. Proposing as a blocker.
Created attachment 143025 [details]
Remove ability to use multiple indirect mount entries in master map
After discussing this with Jeff I agree the functionality
should be removed. If left in it would compromise our goal
autofs v5 Packages updated.
A package has been built which should help the problem described in
this bug report. This report is therefore being closed with a resolution
of CURRENTRELEASE. You may reopen this bug report if the solution does
not work for you.