git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
306a7f3
)
CVE-2015-7560: s3: smbd: Refuse to set an ACL from a POSIX file handle on a symlink.
author
Jeremy Allison
<jra@samba.org>
Tue, 5 Jan 2016 18:52:50 +0000
(10:52 -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/nttrans.c
patch
|
blob
|
history
diff --git
a/source3/smbd/nttrans.c
b/source3/smbd/nttrans.c
index f0088f77abd17b63a13695c25648963767921bb0..b1917fe62c11c857e9a8e04038c32decf340677c 100644
(file)
--- a/
source3/smbd/nttrans.c
+++ b/
source3/smbd/nttrans.c
@@
-893,6
+893,12
@@
NTSTATUS set_sd(files_struct *fsp, struct security_descriptor *psd,
return NT_STATUS_OK;
}
+ if (S_ISLNK(fsp->fsp_name->st.st_ex_mode)) {
+ DEBUG(10, ("ACL set on symlink %s denied.\n",
+ fsp_str_dbg(fsp)));
+ return NT_STATUS_ACCESS_DENIED;
+ }
+
if (psd->owner_sid == NULL) {
security_info_sent &= ~SECINFO_OWNER;
}