summaryrefslogtreecommitdiff
path: root/source3/smbd/proto.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-10-21 14:12:41 -0700
committerJeremy Allison <jra@samba.org>2011-10-22 01:37:41 +0200
commit662e9c04fbdf8e01036ab98783693051b0eb9c7e (patch)
tree21ee96debd90ed2abcd81a1cc620c2738e2c1da3 /source3/smbd/proto.h
parent950f1218b3b5b85d95190083985632a4e1046f10 (diff)
downloadsamba-662e9c04fbdf8e01036ab98783693051b0eb9c7e.tar.gz
samba-662e9c04fbdf8e01036ab98783693051b0eb9c7e.tar.bz2
samba-662e9c04fbdf8e01036ab98783693051b0eb9c7e.zip
Fix bug #8541 - readlink() on Linux clients fails if the symlink target is outside of the share.
The key is to only allow the lookup to succeed if it's a UNIX level lookup or readlink, but disallow all other operations. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 22 01:37:41 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r--source3/smbd/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 49bb911cbc..9891c1e403 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -342,6 +342,7 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
const char *orig_path,
struct smb_filename **smb_fname,
uint32_t ucf_flags);
+NTSTATUS check_veto_path(connection_struct *conn, const char *name);
NTSTATUS check_name(connection_struct *conn, const char *name);
int get_real_filename(connection_struct *conn, const char *path,
const char *name, TALLOC_CTX *mem_ctx,