smbd: Print ACL used to create hash in vfs_xattr_common
authorAndrew Bartlett <abartlet@samba.org>
Sun, 9 Sep 2012 22:43:09 +0000 (08:43 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 11 Sep 2012 16:19:53 +0000 (18:19 +0200)
This should help us understand why sometimes an ACL set won't stick.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Sep 11 18:19:53 CEST 2012 on sn-devel-104

source3/modules/vfs_acl_common.c

index a3d53a134541a52e849d3b52db2c484687a7ec53..c2ac875fa189095030861370c90564be173cfd33 100644 (file)
@@ -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)) {