diff options
author | Jeremy Allison <jra@samba.org> | 2008-11-12 19:27:17 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-11-12 19:27:17 -0800 |
commit | 6f0be6c5d580ea751b28a0166b4454a0ef333dc2 (patch) | |
tree | 76ed8bdae2dd77098df987f7b3309379f52c531d | |
parent | d38bffd4126062b92384f0930196059441a2d765 (diff) | |
download | samba-6f0be6c5d580ea751b28a0166b4454a0ef333dc2.tar.gz samba-6f0be6c5d580ea751b28a0166b4454a0ef333dc2.tar.bz2 samba-6f0be6c5d580ea751b28a0166b4454a0ef333dc2.zip |
Pretty print out SD's on get/set.
Jeremy.
-rw-r--r-- | source3/smbd/nttrans.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 1a13d962f0..caace5197c 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -741,6 +741,11 @@ static NTSTATUS set_sd(files_struct *fsp, uint8 *data, uint32 sd_len, security_acl_map_generic(psd->dacl, &file_generic_mapping); security_acl_map_generic(psd->sacl, &file_generic_mapping); + if (DEBUGLEVEL >= 10) { + DEBUG(10,("set_sd for file %s\n", fsp->fsp_name )); + NDR_PRINT_DEBUG(security_descriptor, psd); + } + status = SMB_VFS_FSET_NT_ACL(fsp, security_info_sent, psd); TALLOC_FREE(psd); @@ -1601,6 +1606,11 @@ static void call_nt_transact_query_security_desc(connection_struct *conn, DEBUG(3,("call_nt_transact_query_security_desc: sd_size = %lu.\n",(unsigned long)sd_size)); + if (DEBUGLEVEL >= 10) { + DEBUG(10,("call_nt_transact_query_security_desc for file %s\n", fsp->fsp_name ) + NDR_PRINT_DEBUG(security_descriptor, psd); + } + SIVAL(params,0,(uint32)sd_size); if (max_data_count < sd_size) { |