summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorRichard Sharpe <realrichardsharpe@gmail.com>2012-03-27 20:32:11 -0700
committerRichard Sharpe <sharpe@samba.org>2012-03-28 07:07:26 +0200
commit3be2af1df94443a2dc21d4f5f58ce11b83e4306f (patch)
tree2ff6222d99ac950622cde0f294f8e7bc0f16ed5a /source3/smbd
parent26f7a676f9a0f6f8c5ae3bef9247c675734f35cd (diff)
downloadsamba-3be2af1df94443a2dc21d4f5f58ce11b83e4306f.tar.gz
samba-3be2af1df94443a2dc21d4f5f58ce11b83e4306f.tar.bz2
samba-3be2af1df94443a2dc21d4f5f58ce11b83e4306f.zip
Add DEBUG statements to show when access has been denied and why.
Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Wed Mar 28 07:07:26 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index fc52ee5be4..20379ac6d9 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -1868,11 +1868,13 @@ NTSTATUS smbd_do_query_security_desc(connection_struct *conn,
if ((security_info_wanted & SECINFO_SACL) &&
!(fsp->access_mask & SEC_FLAG_SYSTEM_SECURITY)) {
+ DEBUG(10, ("Access to SACL denied.\n"));
return NT_STATUS_ACCESS_DENIED;
}
if ((security_info_wanted & (SECINFO_DACL|SECINFO_OWNER|SECINFO_GROUP)) &&
!(fsp->access_mask & SEC_STD_READ_CONTROL)) {
+ DEBUG(10, ("Access to DACL, OWNER, or GROUP denied.\n"));
return NT_STATUS_ACCESS_DENIED;
}