diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-10 13:09:06 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-07-26 21:54:23 +0200 |
commit | c0a2ffc80e2aafba7010564e0cf56e3807155d4b (patch) | |
tree | 6cc2605af4165f646a202819b5745952f97c6e7e | |
parent | 0ea90e47525ab18b8b28e496a03df8788a1d878f (diff) | |
download | samba-c0a2ffc80e2aafba7010564e0cf56e3807155d4b.tar.gz samba-c0a2ffc80e2aafba7010564e0cf56e3807155d4b.tar.xz samba-c0a2ffc80e2aafba7010564e0cf56e3807155d4b.zip |
s3:smb2_create: use smbd_calculate_access_mask() instead of smbd_check_open_rights()
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jul 11 22:45:01 CEST 2011 on sn-devel-104
(cherry picked from commit f5d320ac0fb74d4ad95a03969366096e9b074379)
The last 10 patches address bug #8102 (domuser can change ACL from his files
over the network).
(cherry picked from commit d43d147c9d69dd23296677f9ae998c9362771682)
-rw-r--r-- | source3/smbd/smb2_create.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 3478f347f57..fcd8945f837 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -736,8 +736,13 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, uint32_t max_access_granted; DATA_BLOB blob = data_blob_const(p, sizeof(p)); - status = smbd_check_open_rights(smb1req->conn, + status = smbd_calculate_access_mask(smb1req->conn, result->fsp_name, + /* + * at this stage + * it exists + */ + true, SEC_FLAG_MAXIMUM_ALLOWED, &max_access_granted); |