Bug 1490935 - NFS4 - mp,mountpoint option in /etc/exports offers export when it should not
Summary: NFS4 - mp,mountpoint option in /etc/exports offers export when it should not
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-12 14:08 UTC by Bruno Goncalves
Modified: 2017-10-16 19:37 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-10-16 19:37:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bruno Goncalves 2017-09-12 14:08:35 UTC
Description of problem:
NFS4 mp or mountpoint option specified in /etc/exports has no effect, e.g., nfs will export an export point specified as 'mp' even though that export point is not a mountpoint.

Version-Release number of selected component (if applicable):
nfs-utils-2.1.1-5.rc5.fc26.x86_64

How reproducible: Always


Steps to Reproduce:
1.mkdir /export_test
2.cat /etc/exports
/export_test *(rw,mountpoint)
3.systemctl restart nfs
4.showmount -e
Export list for localhost.localdomain:
/export_test *


Actual Results:  
the directory /export/share is offered by the nfs server as a possible export

Expected Results:  
since /export/share is not a mountpoint, it should not be shared.

Comment 2 Steve Dickson 2017-10-16 19:37:03 UTC
(In reply to Bruno Goncalves from comment #0)
> Description of problem:
> NFS4 mp or mountpoint option specified in /etc/exports has no effect, e.g.,
> nfs will export an export point specified as 'mp' even though that export
> point is not a mountpoint.
> 
> Version-Release number of selected component (if applicable):
> nfs-utils-2.1.1-5.rc5.fc26.x86_64
> 
> How reproducible: Always
> 
> 
> Steps to Reproduce:
> 1.mkdir /export_test
> 2.cat /etc/exports
> /export_test *(rw,mountpoint)
> 3.systemctl restart nfs
> 4.showmount -e
> Export list for localhost.localdomain:
> /export_test *
> 
> 
> Actual Results:  
> the directory /export/share is offered by the nfs server as a possible export
> 
> Expected Results:  
> since /export/share is not a mountpoint, it should not be shared.

The mount point will still show... but then the client tries to mount the directory the client mount will fail if /export_test is not a mount point


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