svn commit: samba r11777 - in branches/SAMBA_4_0/source: libcli/smb2 torture/smb2

tridge at samba.org tridge at samba.org
Fri Nov 18 10:07:15 GMT 2005


Author: tridge
Date: 2005-11-18 10:07:14 +0000 (Fri, 18 Nov 2005)
New Revision: 11777

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11777

Log:

display the security_descriptor in torture_smb2_all_info()


Modified:
   branches/SAMBA_4_0/source/libcli/smb2/getinfo.c
   branches/SAMBA_4_0/source/torture/smb2/util.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/smb2/getinfo.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb2/getinfo.c	2005-11-18 09:51:13 UTC (rev 11776)
+++ branches/SAMBA_4_0/source/libcli/smb2/getinfo.c	2005-11-18 10:07:14 UTC (rev 11777)
@@ -91,6 +91,10 @@
 */
 uint16_t smb2_getinfo_map_level(uint16_t level, uint8_t class)
 {
+	if (class == SMB2_GETINFO_FILE && 
+	    level == RAW_FILEINFO_SEC_DESC) {
+		return SMB2_GETINFO_SECURITY;
+	}
 	if ((level & 0xFF) == class) {
 		return level;
 	} else if (level > 1000) {

Modified: branches/SAMBA_4_0/source/torture/smb2/util.c
===================================================================
--- branches/SAMBA_4_0/source/torture/smb2/util.c	2005-11-18 09:51:13 UTC (rev 11776)
+++ branches/SAMBA_4_0/source/torture/smb2/util.c	2005-11-18 10:07:14 UTC (rev 11777)
@@ -282,6 +282,16 @@
 		}
 	}	
 
+	/* 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);	
 }
 



More information about the samba-cvs mailing list