Bug 218616

Summary: multiple master map entries with the same key are handled improperly
Product: Red Hat Enterprise Linux 5 Reporter: Jeff Moyer <jmoyer>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: ikent, jmoyer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RC Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-08 01:26:30 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: 220799    
Attachments:
Description Flags
Remove ability to use multiple indirect mount entries in master map none

Description Jeff Moyer 2006-12-06 14:55:38 UTC
Description of problem:
Given an auto.master with the following:

/home    /etc/auto.home
/home    /etc/auto.home2

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):
autofs-5.0.1-0.rc2.27

How reproducible:
100%

Steps to Reproduce:

Create an auto.master map with the following entries:

/home    /etc/auto.home -browse
/home    /etc/auto.home2 -browse

Create /etc/auto.home:

foo    server:/export/foo

Create /etc/auto.home2:

bar    server:/export/bar

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.

Comment 1 RHEL Program Management 2006-12-06 15:30:32 UTC
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
inclusion.

Comment 2 Tom Coughlan 2006-12-06 17:46:23 UTC
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.  

Comment 3 Ian Kent 2006-12-07 04:43:57 UTC
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
of compatibility.

autofs v5 Packages updated.

Ian

Comment 5 RHEL Program Management 2007-02-08 01:26:31 UTC
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.