summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-12-16 11:26:41 -0800
committerJeremy Allison <jra@samba.org>2011-12-16 21:54:23 +0100
commit7dcef878cdf962b4dd9715dc92ffc51284bf168f (patch)
tree64b445e80ae13eff1e41bcfeada4f515aacfd1c7 /source3
parent184b50eb2ccc8463b20f166c4df9ca2682718297 (diff)
downloadsamba-7dcef878cdf962b4dd9715dc92ffc51284bf168f.tar.gz
samba-7dcef878cdf962b4dd9715dc92ffc51284bf168f.tar.bz2
samba-7dcef878cdf962b4dd9715dc92ffc51284bf168f.zip
Restrict UCF_UNIX_NAME_LOOKUP (symlink allowed) to restricted set of calls.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 4417cb27e7..ec9901b99e 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -8024,7 +8024,10 @@ static void call_trans2setfilepathinfo(connection_struct *conn,
return;
}
- if (INFO_LEVEL_IS_UNIX(info_level)) {
+ if (info_level == SMB_SET_FILE_UNIX_BASIC ||
+ info_level == SMB_SET_FILE_UNIX_INFO2 ||
+ info_level == SMB_FILE_RENAME_INFORMATION ||
+ info_level == SMB_POSIX_PATH_UNLINK) {
ucf_flags |= UCF_UNIX_NAME_LOOKUP;
}