]> git.baikalelectronics.ru Git - kernel.git/commit
[CIFS] Can not mount with prefixpath if root directory of share is inaccessible
authorSteve French <sfrench@us.ibm.com>
Fri, 5 Dec 2008 19:14:12 +0000 (19:14 +0000)
committerSteve French <sfrench@us.ibm.com>
Fri, 26 Dec 2008 02:29:11 +0000 (02:29 +0000)
commit98eef22170d4eba26907e88a63fb6f58a6400546
treed0d003c8c9f12b865f0bf8f2015134d7b7031ee5
parent00fb3ad73f7e020b065e84737cc7c2fac720187f
[CIFS] Can not mount with prefixpath if root directory of share is inaccessible

Windows allows you to deny access to the top of a share, but permit access to
a directory lower in the path.  With the prefixpath feature of cifs
(ie mounting \\server\share\directory\subdirectory\etc.) this should have
worked if the user specified a prefixpath which put the root of the mount
at a directory to which he had access, but we still were doing a lookup
on the root of the share (null path) when we should have been doing it on
the prefixpath subdirectory.

This fixes Samba bug # 5925

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/CHANGES
fs/cifs/inode.c