Bug 1165093 - nfs mount via symlinks cross the volume and comes back again to same will fai
Summary: nfs mount via symlinks cross the volume and comes back again to same will fai
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-nfs
Version: rhgs-3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Niels de Vos
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1164227
TreeView+ depends on / blocked
 
Reported: 2014-11-18 10:25 UTC by Jiffin
Modified: 2016-01-29 12:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Cause: The symbolic link which points path outside exported volume is treated as bad symlinks.So when a symlink goes out of the file system , we just stop resolving the symlink and returns an error, but if symlinks returns to exported volume again , right now we do not consider them. Consequence: The code haven't direct access to directories which is outside the file system. By this fix, code may get indirect access to outside of the exported volume. Workaround (if any): Need to resolve the symlink until the path pointed by the symlink completes. Result: The mount using symlink which crosses the file system boundary and comes again will work.
Clone Of:
Environment:
Last Closed: 2016-01-29 12:19:38 UTC
Embargoed:


Attachments (Terms of Use)

Description Jiffin 2014-11-18 10:25:32 UTC
Description of problem:

NFS mount via symlinks crosses the volume(boundary of file system) and comes back again to same will fail where as in kernel nfs it works fine. 

For example,
Consider a volume test which contains,
1.)a directory dir
2.)symlink1 points to ../vol/dir
3.)symlink2 points to ../xyz/../vol/dir 

Mount fails for symlink1 and symlink2

Version-Release number of selected component (if applicable):
mainline

How reproducible:
always


Actual results:
Mount fails retuning access denied.

Expected results:
Mount should happen

Additional info:
Kernel nfs is resolving mount path correctly

Comment 2 Soumya Koduri 2016-01-29 12:19:38 UTC
In Gluster, symlinks cannot be resolved outside its namespace. So this is working as expected. Closing the bug.


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