mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
fs/cifs: make share unaccessible at root level mountable
commit a6b5058faf upstream.
if, when mounting //HOST/share/sub/dir/foo we can query /sub/dir/foo but
not any of the path components above:
- store the /sub/dir/foo prefix in the cifs super_block info
- in the superblock, set root dentry to the subpath dentry (instead of
the share root)
- set a flag in the superblock to remember it
- use prefixpath when building path from a dentry
fixes bso#8950
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
[bwh: Backported to 3.16: use Jiri Slaby's backport of the change in
cifs_root_iget()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
f747d99ca6
commit
a2b22f2031
5 changed files with 104 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue