mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
CVE-2015-7560: s3: smbd: Refuse to set EA's on a symlink.
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>
This commit is contained in:
parent
3f491d7756
commit
77b3d5b2a8
@ -664,6 +664,11 @@ NTSTATUS set_ea(connection_struct *conn, files_struct *fsp,
|
|||||||
return NT_STATUS_EAS_NOT_SUPPORTED;
|
return NT_STATUS_EAS_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
status = refuse_symlink(conn, fsp, smb_fname->base_name);
|
||||||
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
status = check_access(conn, fsp, smb_fname, FILE_WRITE_EA);
|
status = check_access(conn, fsp, smb_fname, FILE_WRITE_EA);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user