Fix bug #8541 - readlink() on Linux clients fails if the symlink target is outside...
commitdf549978366222fc0c775f7c5935a975fe5a2599
authorJeremy Allison <jra@samba.org>
Fri, 21 Oct 2011 21:12:41 +0000 (21 14:12 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 20:26:09 +0000 (23 21:26 +0100)
tree6b480c7d8244396e4907e69ede80bbb23912beaf
parent1f8ff6cc976007b540ec8458ab77a0eed8bc7709
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.
(cherry picked from commit d2ec9d20858b8e5256bf8339395c6f47793e0975)
(cherry picked from commit a7d2815e97218c2b7eccbac25f78f2c2fae45a79)
source3/include/smb.h
source3/smbd/filename.c
source3/smbd/proto.h
source3/smbd/trans2.c