git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5941d75
)
CVE-2015-7560: s3: smbd: Refuse to get a POSIX ACL on a symlink.
author
Jeremy Allison
<jra@samba.org>
Tue, 5 Jan 2016 19:24:36 +0000
(11:24 -0800)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 10 Mar 2016 05:52:23 +0000
(06:52 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11648
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index d30d0c067b259b951b5c1d5d60b1b27cff08aea5..252be331fedcfe0fa5bedda8c6092027fa0141b0 100644
(file)
--- a/
source3/smbd/trans2.c
+++ b/
source3/smbd/trans2.c
@@
-5346,6
+5346,13
@@
NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
uint16_t num_file_acls = 0;
uint16_t num_def_acls = 0;
+ status = refuse_symlink(conn,
+ fsp,
+ smb_fname->base_name);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
if (fsp && fsp->fh->fd != -1) {
file_acl = SMB_VFS_SYS_ACL_GET_FD(fsp,
talloc_tos());