diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-18 10:07:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:25 -0500 |
commit | 3922b68d13ec79b8ebf55d0624668bf6483930a6 (patch) | |
tree | 0c18e8c8bbcd4b504ff6cf4cfa4f8a749ea95a7e /source4/torture | |
parent | 1692b2e571d4c692eae020522d298b6fca3f1804 (diff) | |
download | samba-3922b68d13ec79b8ebf55d0624668bf6483930a6.tar.gz samba-3922b68d13ec79b8ebf55d0624668bf6483930a6.tar.bz2 samba-3922b68d13ec79b8ebf55d0624668bf6483930a6.zip |
r11777: display the security_descriptor in torture_smb2_all_info()
(This used to be commit d1067fc25df57b1b6ef59a69f979ed76df5c46cd)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/smb2/util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 776714da9e..7afce0137f 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -282,6 +282,16 @@ void torture_smb2_all_info(struct smb2_tree *tree, struct smb2_handle handle) } } + /* the security descriptor */ + io.query_secdesc.level = RAW_FILEINFO_SEC_DESC; + io.query_secdesc.secinfo_flags = + SECINFO_OWNER|SECINFO_GROUP| + SECINFO_DACL; + status = smb2_getinfo_file(tree, tmp_ctx, &io); + if (NT_STATUS_IS_OK(status)) { + NDR_PRINT_DEBUG(security_descriptor, io.query_secdesc.out.sd); + } + talloc_free(tmp_ctx); } |