summaryrefslogtreecommitdiffstats
path: root/source/smbd/file_access.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-03-04 16:56:45 -0800
committerKarolin Seeger <kseeger@samba.org>2009-03-06 08:28:30 +0100
commit3992e319fd854293724d884830571ed251c48496 (patch)
tree9504f46e321d24aca96a05aa614d6271b32c210f /source/smbd/file_access.c
parent717e7960c11d3d88ddfdd8c9f037331019b80cd9 (diff)
downloadsamba-3992e319fd854293724d884830571ed251c48496.tar.gz
samba-3992e319fd854293724d884830571ed251c48496.tar.xz
samba-3992e319fd854293724d884830571ed251c48496.zip
Fix bug #6154 - zfs does not honor admin users.
Jeremy. (cherry picked from commit a7efcb3666fe4df778df95449e98970a77369b79)
Diffstat (limited to 'source/smbd/file_access.c')
-rw-r--r--source/smbd/file_access.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbd/file_access.c b/source/smbd/file_access.c
index 743e0790ec5..fd3c8f7274a 100644
--- a/source/smbd/file_access.c
+++ b/source/smbd/file_access.c
@@ -34,6 +34,11 @@ bool can_access_file_acl(struct connection_struct *conn,
uint32_t access_granted;
struct security_descriptor *secdesc = NULL;
+ if (conn->server_info->utok.uid == 0 || conn->admin_user) {
+ /* I'm sorry sir, I didn't know you were root... */
+ return true;
+ }
+
status = SMB_VFS_GET_NT_ACL(conn, fname,
(OWNER_SECURITY_INFORMATION |
GROUP_SECURITY_INFORMATION |