From 33d9a22dcb3662e8a5e33d490d2739712151677c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 10 Sep 2012 08:43:09 +1000 Subject: smbd: Print ACL used to create hash in vfs_xattr_common This should help us understand why sometimes an ACL set won't stick. Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue Sep 11 18:19:53 CEST 2012 on sn-devel-104 --- source3/modules/vfs_acl_common.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index a3d53a1345..c2ac875fa1 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -375,6 +375,12 @@ static NTSTATUS get_nt_acl_internal(vfs_handle_struct *handle, "file system SD mapping.\n", name )); + if (DEBUGLEVEL >= 10) { + DEBUG(10,("get_nt_acl_internal: acl for blob hash for %s is:\n", + name )); + NDR_PRINT_DEBUG(security_descriptor, pdesc_next); + } + TALLOC_FREE(psd); psd = pdesc_next; @@ -596,6 +602,10 @@ static NTSTATUS fset_nt_acl_common(vfs_handle_struct *handle, files_struct *fsp, fsp_str_dbg(fsp))); NDR_PRINT_DEBUG(security_descriptor, discard_const_p(struct security_descriptor, psd)); + + DEBUG(10,("fset_nt_acl_xattr: storing has in xattr sd based on \n")); + NDR_PRINT_DEBUG(security_descriptor, + discard_const_p(struct security_descriptor, pdesc_next)); } status = create_acl_blob(psd, &blob, XATTR_SD_HASH_TYPE_SHA256, hash); if (!NT_STATUS_IS_OK(status)) { -- cgit