[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-5038-g30d2017
Jeremy Allison
jra at samba.org
Thu Mar 5 01:18:57 GMT 2009
The branch, v3-3-test has been updated
via 30d2017c7bb01adb5e9ce4bf84df845d676665de (commit)
from a7efcb3666fe4df778df95449e98970a77369b79 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 30d2017c7bb01adb5e9ce4bf84df845d676665de
Author: Jeremy Allison <jra at samba.org>
Date: Wed Mar 4 17:18:12 2009 -0800
Second part of fix for #6154, ensure we return max access
if admin user.
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/smbd/open.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 9b51ff0..d2f85ce 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -59,6 +59,15 @@ static NTSTATUS check_open_rights(struct connection_struct *conn,
*access_granted = 0;
+ if (conn->server_info->utok.uid == 0 || conn->admin_user) {
+ /* I'm sorry sir, I didn't know you were root... */
+ *access_granted = access_mask;
+ if (access_mask & SEC_FLAG_MAXIMUM_ALLOWED) {
+ *access_granted |= FILE_GENERIC_ALL;
+ }
+ return NT_STATUS_OK;
+ }
+
status = SMB_VFS_GET_NT_ACL(conn, fname,
(OWNER_SECURITY_INFORMATION |
GROUP_SECURITY_INFORMATION |
--
Samba Shared Repository
More information about the samba-cvs
mailing list