1da6c28aaSamw #!/usr/sbin/dtrace -s 2da6c28aaSamw /* 3da6c28aaSamw * CDDL HEADER START 4da6c28aaSamw * 5da6c28aaSamw * The contents of this file are subject to the terms of the 6da6c28aaSamw * Common Development and Distribution License (the "License"). 7da6c28aaSamw * You may not use this file except in compliance with the License. 8da6c28aaSamw * 9da6c28aaSamw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10da6c28aaSamw * or http://www.opensolaris.org/os/licensing. 11da6c28aaSamw * See the License for the specific language governing permissions 12da6c28aaSamw * and limitations under the License. 13da6c28aaSamw * 14da6c28aaSamw * When distributing Covered Code, include this CDDL HEADER in each 15da6c28aaSamw * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16da6c28aaSamw * If applicable, add the following below this CDDL HEADER, with the 17da6c28aaSamw * fields enclosed by brackets "[]" replaced with your own identifying 18da6c28aaSamw * information: Portions Copyright [yyyy] [name of copyright owner] 19da6c28aaSamw * 20da6c28aaSamw * CDDL HEADER END 21da6c28aaSamw */ 22148c5f43SAlan Wright 23da6c28aaSamw /* 24148c5f43SAlan Wright * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 25da6c28aaSamw */ 26da6c28aaSamw 27da6c28aaSamw /* 28da6c28aaSamw * Usage: ./msrpc.d -p `pgrep smbd` 29da6c28aaSamw * 30da6c28aaSamw * On multi-processor systems, it may be easier to follow the output 31da6c28aaSamw * if run on a single processor: see psradm. For example, to disable 32da6c28aaSamw * the second processor on a dual-processor system: psradm -f 1 3355bf511dSas200622 * 3455bf511dSas200622 * This script can be used to trace NDR operations and MSRPC requests. 3555bf511dSas200622 * In order to put these operations in context, SMB session and tree 3655bf511dSas200622 * requests are also traced. 3755bf511dSas200622 * 3855bf511dSas200622 * Output formatting is as follows: 3955bf511dSas200622 * 4055bf511dSas200622 * UI 03 ... rpc_vers get 1@0 = 5 {05} 4155bf511dSas200622 * UI 03 ... rpc_vers_minor get 1@1 = 0 {00} 4255bf511dSas200622 * 4355bf511dSas200622 * U Marshalling flag (M=marshal, U=unmarshal) 4455bf511dSas200622 * I Direction flag (I=in, O=out) 4555bf511dSas200622 * ... Field name 4655bf511dSas200622 * get PDU operation (get or put) 4755bf511dSas200622 * 1@0 Bytes @ offset (i.e. 1 byte at offset 0) 4855bf511dSas200622 * {05} Value 4955bf511dSas200622 * 5055bf511dSas200622 * The value formatting is limited to 10 bytes, after which an ellipsis 5155bf511dSas200622 * will be inserted before the closing brace. If the value is 1 or 2 5255bf511dSas200622 * bytes, an attempt will be made to present an ASCII value but this may 5355bf511dSas200622 * or may not be relevent. 5455bf511dSas200622 * 5555bf511dSas200622 * The following example shows the header from a bind response: 5655bf511dSas200622 * 5755bf511dSas200622 * trace:entry MO 03 ... rpc_vers put 1@0 = 5 {05} 5855bf511dSas200622 * trace:entry MO 03 ... rpc_vers_minor put 1@1 = 0 {00} 5955bf511dSas200622 * trace:entry MO 03 ... ptype put 1@2 = 12 {0c} 6055bf511dSas200622 * trace:entry MO 03 ... pfc_flags put 1@3 = 3 {03} 6155bf511dSas200622 * trace:entry MO 04 .... intg_char_rep put 1@4 = 16 {10} 6255bf511dSas200622 * trace:entry MO 04 .... float_rep put 1@5 = 0 {00} 6355bf511dSas200622 * trace:entry MO 04 .... _spare[0] put 1@6 = 0 {00} 6455bf511dSas200622 * trace:entry MO 04 .... _spare[1] put 1@7 = 0 {00} 6555bf511dSas200622 * trace:entry MO 03 ... frag_length put 2@8 = 68 {44 00} D 6655bf511dSas200622 * trace:entry MO 03 ... auth_length put 2@10 = 0 {00 00} 6755bf511dSas200622 * trace:entry MO 03 ... call_id put 4@12 = 1 {01 00 00 00} 6855bf511dSas200622 * trace:entry MO 02 .. max_xmit_frag put 2@16 = 4280 {b8 10} 6955bf511dSas200622 * trace:entry MO 02 .. max_recv_frag put 2@18 = 4280 {b8 10} 7055bf511dSas200622 * trace:entry MO 02 .. assoc_group_id put 4@20 = 1192620711 {a7 f2 15 47} 7155bf511dSas200622 * trace:entry MO 02 .. sec_addr.length put 2@24 = 12 {0c 00} 7255bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[0] put 1@26 = 92 {5c} \ 7355bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[1] put 1@27 = 80 {50} P 7455bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[2] put 1@28 = 73 {49} I 7555bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[3] put 1@29 = 80 {50} P 7655bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[4] put 1@30 = 69 {45} E 7755bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[5] put 1@31 = 92 {5c} \ 7855bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[6] put 1@32 = 108 {6c} l 7955bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[7] put 1@33 = 115 {73} s 8055bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[8] put 1@34 = 97 {61} a 8155bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[9] put 1@35 = 115 {73} s 8255bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[10] put 1@36 = 115 {73} s 8355bf511dSas200622 * trace:entry MO 02 .. sec_addr.port_spec[11] put 1@37 = 0 {00} 84da6c28aaSamw */ 85da6c28aaSamw 86dc20a302Sas200622 BEGIN 87dc20a302Sas200622 { 88dc20a302Sas200622 printf("MSRPC Trace Started"); 89dc20a302Sas200622 printf("\n\n"); 90dc20a302Sas200622 } 91dc20a302Sas200622 92dc20a302Sas200622 END 93dc20a302Sas200622 { 94dc20a302Sas200622 printf("MSRPC Trace Ended"); 95dc20a302Sas200622 printf("\n\n"); 96dc20a302Sas200622 } 97dc20a302Sas200622 98da6c28aaSamw /* 99da6c28aaSamw * SmbSessionSetupX, SmbLogoffX 100da6c28aaSamw * SmbTreeConnect, SmbTreeDisconnect 101da6c28aaSamw */ 102da6c28aaSamw smb_tree*:entry, 103da6c28aaSamw smb_com_*:entry, 104da6c28aaSamw smb_com_*:return, 105da6c28aaSamw smb_com_session_setup_andx:entry, 106da6c28aaSamw smb_com_logoff_andx:entry, 107da6c28aaSamw smb_tree_connect:return, 108da6c28aaSamw smb_tree_disconnect:entry, 109dc20a302Sas200622 smb_tree_disconnect:return, 1103db3f65cSamw smb_opipe_open:entry, 1113db3f65cSamw smb_opipe_door_call:entry, 1123db3f65cSamw smb_opipe_door_upcall:entry, 113dc20a302Sas200622 door_ki_upcall:entry 114da6c28aaSamw { 115da6c28aaSamw } 116da6c28aaSamw 117da6c28aaSamw smb_com_session_setup_andx:return, 118da6c28aaSamw smb_user*:return, 119dc20a302Sas200622 smb_tree*:return, 1203db3f65cSamw smb_opipe_open:return, 1213db3f65cSamw smb_opipe_door_call:return, 1223db3f65cSamw smb_opipe_door_upcall:return, 123dc20a302Sas200622 door_ki_upcall:return 124da6c28aaSamw { 125dc20a302Sas200622 printf("rc=0x%08x", arg1); 126da6c28aaSamw } 127da6c28aaSamw 128da6c28aaSamw sdt:smbsrv::smb-sessionsetup-clntinfo 129da6c28aaSamw { 1309fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States user_info = (smb_logon_t *)arg0; 131da6c28aaSamw 1328d7e4166Sjose borrego printf("domain\\username=%s\\%s\n\n", 1339fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States stringof(user_info->lg_domain), 1349fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States stringof(user_info->lg_username)); 135da6c28aaSamw } 136da6c28aaSamw 137da6c28aaSamw smb_tree_connect:entry 138da6c28aaSamw { 1398d7e4166Sjose borrego sr = (smb_request_t *)arg0; 1408d7e4166Sjose borrego 141da6c28aaSamw printf("share=%s service=%s", 1428d7e4166Sjose borrego stringof(sr->arg.tcon.path), 1438d7e4166Sjose borrego stringof(sr->arg.tcon.service)); 144da6c28aaSamw } 145da6c28aaSamw 146da6c28aaSamw smb_com_logoff_andx:return 147da6c28aaSamw { 148da6c28aaSamw } 149da6c28aaSamw 150da6c28aaSamw /* 151da6c28aaSamw * Raise error functions (no return). 152da6c28aaSamw */ 153148c5f43SAlan Wright smbsr_status:entry 154da6c28aaSamw { 155da6c28aaSamw printf("status=0x%08x class=%d, code=%d", arg1, arg2, arg3); 156da6c28aaSamw } 157da6c28aaSamw 158dc20a302Sas200622 smbsr_errno:entry 159da6c28aaSamw { 160da6c28aaSamw printf("errno=%d", arg1); 161da6c28aaSamw } 162da6c28aaSamw 163148c5f43SAlan Wright smbsr_status:return, 164c8ec8eeaSjose borrego smbsr_errno:return 165c8ec8eeaSjose borrego { 166c8ec8eeaSjose borrego } 167c8ec8eeaSjose borrego 168da6c28aaSamw /* 169da6c28aaSamw * MSRPC activity. 170da6c28aaSamw */ 1718d7e4166Sjose borrego pid$target::ndr_svc_bind:entry, 1728d7e4166Sjose borrego pid$target::ndr_svc_bind:return, 1738d7e4166Sjose borrego pid$target::ndr_svc_request:entry, 1748d7e4166Sjose borrego pid$target::ndr_svc_request:return 175da6c28aaSamw { 176da6c28aaSamw } 177da6c28aaSamw 178da6c28aaSamw pid$target::smb_trace:entry, 1798d7e4166Sjose borrego pid$target::ndo_trace:entry 180da6c28aaSamw { 181da6c28aaSamw printf("%s", copyinstr(arg0)); 182da6c28aaSamw } 183da6c28aaSamw 184da6c28aaSamw /* 185da6c28aaSamw * LSARPC 186da6c28aaSamw */ 187da6c28aaSamw pid$target::lsarpc_s_CloseHandle:entry, 188da6c28aaSamw pid$target::lsarpc_s_QuerySecurityObject:entry, 189da6c28aaSamw pid$target::lsarpc_s_EnumAccounts:entry, 190da6c28aaSamw pid$target::lsarpc_s_EnumTrustedDomain:entry, 191da6c28aaSamw pid$target::lsarpc_s_OpenAccount:entry, 192da6c28aaSamw pid$target::lsarpc_s_EnumPrivsAccount:entry, 193da6c28aaSamw pid$target::lsarpc_s_LookupPrivValue:entry, 194da6c28aaSamw pid$target::lsarpc_s_LookupPrivName:entry, 195da6c28aaSamw pid$target::lsarpc_s_LookupPrivDisplayName:entry, 196da6c28aaSamw pid$target::lsarpc_s_QueryInfoPolicy:entry, 197da6c28aaSamw pid$target::lsarpc_s_OpenDomainHandle:entry, 198da6c28aaSamw pid$target::lsarpc_s_OpenDomainHandle:entry, 199da6c28aaSamw pid$target::lsarpc_s_LookupSids:entry, 200da6c28aaSamw pid$target::lsarpc_s_LookupNames:entry, 201da6c28aaSamw pid$target::lsarpc_s_GetConnectedUser:entry, 202da6c28aaSamw pid$target::lsarpc_s_LookupSids2:entry, 203da6c28aaSamw pid$target::lsarpc_s_LookupNames2:entry 204da6c28aaSamw { 205da6c28aaSamw } 206da6c28aaSamw 207da6c28aaSamw pid$target::lsarpc_s_CloseHandle:return, 208da6c28aaSamw pid$target::lsarpc_s_QuerySecurityObject:return, 209da6c28aaSamw pid$target::lsarpc_s_EnumAccounts:return, 210da6c28aaSamw pid$target::lsarpc_s_EnumTrustedDomain:return, 211da6c28aaSamw pid$target::lsarpc_s_OpenAccount:return, 212da6c28aaSamw pid$target::lsarpc_s_EnumPrivsAccount:return, 213da6c28aaSamw pid$target::lsarpc_s_LookupPrivValue:return, 214da6c28aaSamw pid$target::lsarpc_s_LookupPrivName:return, 215da6c28aaSamw pid$target::lsarpc_s_LookupPrivDisplayName:return, 216da6c28aaSamw pid$target::lsarpc_s_QueryInfoPolicy:return, 217da6c28aaSamw pid$target::lsarpc_s_OpenDomainHandle:return, 218da6c28aaSamw pid$target::lsarpc_s_OpenDomainHandle:return, 219da6c28aaSamw pid$target::lsarpc_s_LookupSids:return, 220da6c28aaSamw pid$target::lsarpc_s_LookupNames:return, 221da6c28aaSamw pid$target::lsarpc_s_GetConnectedUser:return, 222da6c28aaSamw pid$target::lsarpc_s_LookupSids2:return, 223da6c28aaSamw pid$target::lsarpc_s_LookupNames2:return 224da6c28aaSamw { 225da6c28aaSamw } 226da6c28aaSamw 227fe1c642dSBill Krier pid$target::lsar_lookup_names:entry 228fe1c642dSBill Krier { 229fe1c642dSBill Krier printf("%s", copyinstr(arg1)); 230fe1c642dSBill Krier } 231fe1c642dSBill Krier 232fe1c642dSBill Krier pid$target::lsar_lookup_*:entry 233fe1c642dSBill Krier { 234fe1c642dSBill Krier } 235fe1c642dSBill Krier 236fe1c642dSBill Krier pid$target::lsar_lookup_*:return 237fe1c642dSBill Krier { 238fe1c642dSBill Krier printf("0x%08x", arg1); 239fe1c642dSBill Krier } 240fe1c642dSBill Krier 241f96bd5c8SAlan Wright pid$target::lsar_*:entry 242f96bd5c8SAlan Wright { 243f96bd5c8SAlan Wright } 244f96bd5c8SAlan Wright 245f96bd5c8SAlan Wright pid$target::lsar_*:return 246f96bd5c8SAlan Wright { 247f96bd5c8SAlan Wright printf("0x%08x", arg1); 248f96bd5c8SAlan Wright } 249f96bd5c8SAlan Wright 250da6c28aaSamw /* 251da6c28aaSamw * NetLogon 252da6c28aaSamw */ 2530658b32dSAlan Wright pid$target::netr_*:entry 254da6c28aaSamw { 255da6c28aaSamw } 256da6c28aaSamw 2570658b32dSAlan Wright pid$target::netr_*:return 2580658b32dSAlan Wright { 2590658b32dSAlan Wright printf("0x%08x", arg1); 2600658b32dSAlan Wright } 2610658b32dSAlan Wright 262da6c28aaSamw /* 263da6c28aaSamw * SAMR 264da6c28aaSamw */ 265cb174861Sjoyce mcintosh pid$target::samr_s_Connect:entry, 266da6c28aaSamw pid$target::samr_s_CloseHandle:entry, 267da6c28aaSamw pid$target::samr_s_LookupDomain:entry, 268da6c28aaSamw pid$target::samr_s_EnumLocalDomains:entry, 269da6c28aaSamw pid$target::samr_s_OpenDomain:entry, 270da6c28aaSamw pid$target::samr_s_QueryDomainInfo:entry, 271f96bd5c8SAlan Wright pid$target::samr_s_QueryInfoDomain2:entry, 272da6c28aaSamw pid$target::samr_s_LookupNames:entry, 273da6c28aaSamw pid$target::samr_s_OpenUser:entry, 274da6c28aaSamw pid$target::samr_s_DeleteUser:entry, 275da6c28aaSamw pid$target::samr_s_QueryUserInfo:entry, 276da6c28aaSamw pid$target::samr_s_QueryUserGroups:entry, 277da6c28aaSamw pid$target::samr_s_OpenGroup:entry, 278cb174861Sjoyce mcintosh pid$target::samr_s_Connect2:entry, 279da6c28aaSamw pid$target::samr_s_GetUserPwInfo:entry, 280da6c28aaSamw pid$target::samr_s_CreateUser:entry, 281da6c28aaSamw pid$target::samr_s_ChangeUserPasswd:entry, 282da6c28aaSamw pid$target::samr_s_GetDomainPwInfo:entry, 283da6c28aaSamw pid$target::samr_s_SetUserInfo:entry, 284da6c28aaSamw pid$target::samr_s_Connect4:entry, 285cb174861Sjoyce mcintosh pid$target::samr_s_Connect5:entry, 286da6c28aaSamw pid$target::samr_s_QueryDispInfo:entry, 287da6c28aaSamw pid$target::samr_s_OpenAlias:entry, 288da6c28aaSamw pid$target::samr_s_CreateDomainAlias:entry, 289da6c28aaSamw pid$target::samr_s_SetAliasInfo:entry, 290da6c28aaSamw pid$target::samr_s_QueryAliasInfo:entry, 291da6c28aaSamw pid$target::samr_s_DeleteDomainAlias:entry, 292da6c28aaSamw pid$target::samr_s_EnumDomainAliases:entry, 293da6c28aaSamw pid$target::samr_s_EnumDomainGroups:entry 294da6c28aaSamw { 295da6c28aaSamw } 296da6c28aaSamw 297cb174861Sjoyce mcintosh pid$target::samr_s_Connect:return, 298da6c28aaSamw pid$target::samr_s_CloseHandle:return, 299da6c28aaSamw pid$target::samr_s_LookupDomain:return, 300da6c28aaSamw pid$target::samr_s_EnumLocalDomains:return, 301da6c28aaSamw pid$target::samr_s_OpenDomain:return, 302da6c28aaSamw pid$target::samr_s_QueryDomainInfo:return, 303f96bd5c8SAlan Wright pid$target::samr_s_QueryInfoDomain2:return, 304da6c28aaSamw pid$target::samr_s_LookupNames:return, 305da6c28aaSamw pid$target::samr_s_OpenUser:return, 306da6c28aaSamw pid$target::samr_s_DeleteUser:return, 307da6c28aaSamw pid$target::samr_s_QueryUserInfo:return, 308da6c28aaSamw pid$target::samr_s_QueryUserGroups:return, 309da6c28aaSamw pid$target::samr_s_OpenGroup:return, 310cb174861Sjoyce mcintosh pid$target::samr_s_Connect2:return, 311da6c28aaSamw pid$target::samr_s_GetUserPwInfo:return, 312da6c28aaSamw pid$target::samr_s_CreateUser:return, 313da6c28aaSamw pid$target::samr_s_ChangeUserPasswd:return, 314da6c28aaSamw pid$target::samr_s_GetDomainPwInfo:return, 315da6c28aaSamw pid$target::samr_s_SetUserInfo:return, 316da6c28aaSamw pid$target::samr_s_Connect4:return, 317cb174861Sjoyce mcintosh pid$target::samr_s_Connect5:return, 318da6c28aaSamw pid$target::samr_s_QueryDispInfo:return, 319da6c28aaSamw pid$target::samr_s_OpenAlias:return, 320da6c28aaSamw pid$target::samr_s_CreateDomainAlias:return, 321da6c28aaSamw pid$target::samr_s_SetAliasInfo:return, 322da6c28aaSamw pid$target::samr_s_QueryAliasInfo:return, 323da6c28aaSamw pid$target::samr_s_DeleteDomainAlias:return, 324da6c28aaSamw pid$target::samr_s_EnumDomainAliases:return, 325da6c28aaSamw pid$target::samr_s_EnumDomainGroups:return 326da6c28aaSamw { 327da6c28aaSamw } 328da6c28aaSamw 329da6c28aaSamw /* 330*fd9ee8b5Sjoyce mcintosh * SPOOLSS 331*fd9ee8b5Sjoyce mcintosh */ 332*fd9ee8b5Sjoyce mcintosh pid$target::spoolss_*:entry, 333*fd9ee8b5Sjoyce mcintosh pid$target::spoolss_*:return 334*fd9ee8b5Sjoyce mcintosh { 335*fd9ee8b5Sjoyce mcintosh } 336*fd9ee8b5Sjoyce mcintosh 337*fd9ee8b5Sjoyce mcintosh /* 338da6c28aaSamw * SVCCTL 339da6c28aaSamw */ 340da6c28aaSamw pid$target::svcctl_s_*:entry, 341da6c28aaSamw pid$target::svcctl_s_*:return 342da6c28aaSamw { 343da6c28aaSamw } 344da6c28aaSamw 345da6c28aaSamw /* 346da6c28aaSamw * SRVSVC 347da6c28aaSamw */ 348da6c28aaSamw pid$target::srvsvc_s_NetConnectEnum:entry, 349da6c28aaSamw pid$target::srvsvc_s_NetFileEnum:entry, 350da6c28aaSamw pid$target::srvsvc_s_NetFileClose:entry, 351da6c28aaSamw pid$target::srvsvc_s_NetShareGetInfo:entry, 352da6c28aaSamw pid$target::srvsvc_s_NetShareSetInfo:entry, 353da6c28aaSamw pid$target::srvsvc_s_NetSessionEnum:entry, 354da6c28aaSamw pid$target::srvsvc_s_NetSessionDel:entry, 355da6c28aaSamw pid$target::srvsvc_s_NetServerGetInfo:entry, 356da6c28aaSamw pid$target::srvsvc_s_NetRemoteTOD:entry, 357da6c28aaSamw pid$target::srvsvc_s_NetNameValidate:entry, 358da6c28aaSamw pid$target::srvsvc_s_NetShareAdd:entry, 359da6c28aaSamw pid$target::srvsvc_s_NetShareDel:entry, 360da6c28aaSamw pid$target::srvsvc_s_NetShareEnum:entry, 361da6c28aaSamw pid$target::srvsvc_s_NetShareEnumSticky:entry, 362da6c28aaSamw pid$target::srvsvc_s_NetGetFileSecurity:entry, 363da6c28aaSamw pid$target::srvsvc_s_NetSetFileSecurity:entry 364da6c28aaSamw { 365da6c28aaSamw } 366da6c28aaSamw 367da6c28aaSamw pid$target::srvsvc_s_NetConnectEnum:return, 368da6c28aaSamw pid$target::srvsvc_s_NetFileEnum:return, 369da6c28aaSamw pid$target::srvsvc_s_NetFileClose:return, 370da6c28aaSamw pid$target::srvsvc_s_NetShareGetInfo:return, 371da6c28aaSamw pid$target::srvsvc_s_NetShareSetInfo:return, 372da6c28aaSamw pid$target::srvsvc_s_NetSessionEnum:return, 373da6c28aaSamw pid$target::srvsvc_s_NetSessionDel:return, 374da6c28aaSamw pid$target::srvsvc_s_NetServerGetInfo:return, 375da6c28aaSamw pid$target::srvsvc_s_NetRemoteTOD:return, 376da6c28aaSamw pid$target::srvsvc_s_NetNameValidate:return, 377da6c28aaSamw pid$target::srvsvc_s_NetShareAdd:return, 378da6c28aaSamw pid$target::srvsvc_s_NetShareDel:return, 379da6c28aaSamw pid$target::srvsvc_s_NetShareEnum:return, 380da6c28aaSamw pid$target::srvsvc_s_NetShareEnumSticky:return, 381da6c28aaSamw pid$target::srvsvc_s_NetGetFileSecurity:return, 382da6c28aaSamw pid$target::srvsvc_s_NetSetFileSecurity:return 383da6c28aaSamw { 384da6c28aaSamw } 385da6c28aaSamw 386da6c28aaSamw /* 387da6c28aaSamw * WinReg 388da6c28aaSamw */ 389da6c28aaSamw pid$target::winreg_s_*:entry, 390da6c28aaSamw pid$target::winreg_s_*:return 391da6c28aaSamw { 392da6c28aaSamw } 393da6c28aaSamw 394da6c28aaSamw /* 395da6c28aaSamw * Workstation 396da6c28aaSamw */ 397da6c28aaSamw pid$target::wkssvc_s_*:entry, 398da6c28aaSamw pid$target::wkssvc_s_*:return 399da6c28aaSamw { 400da6c28aaSamw } 40155bf511dSas200622 40255bf511dSas200622 /* 40355bf511dSas200622 * SMBRDR 40455bf511dSas200622 */ 405dc20a302Sas200622 pid$target::smbrdr_tree_connect:entry 40655bf511dSas200622 { 40755bf511dSas200622 printf("%s %s %s", 40855bf511dSas200622 copyinstr(arg0), 40955bf511dSas200622 copyinstr(arg1), 41055bf511dSas200622 copyinstr(arg2)); 41155bf511dSas200622 } 41255bf511dSas200622 4138d7e4166Sjose borrego pid$target::smbrdr_open_pipe:entry 41455bf511dSas200622 { 41555bf511dSas200622 printf("%s %s %s %s", 41655bf511dSas200622 copyinstr(arg0), 41755bf511dSas200622 copyinstr(arg1), 41855bf511dSas200622 copyinstr(arg2), 41955bf511dSas200622 copyinstr(arg3)); 42055bf511dSas200622 } 42155bf511dSas200622 4220658b32dSAlan Wright pid$target::smbrdr_tree_disconnect:entry, 4230658b32dSAlan Wright pid$target::smbrdr_close_pipe:entry, 4240658b32dSAlan Wright pid$target::smbrdr_ntcreatex:entry, 4250658b32dSAlan Wright pid$target::smbrdr_transact:entry, 4260658b32dSAlan Wright pid$target::smbrdr_readx*:entry 42755bf511dSas200622 { 42855bf511dSas200622 } 42955bf511dSas200622 430dc20a302Sas200622 pid$target::smbrdr_tree_connect:return, 4310658b32dSAlan Wright pid$target::smbrdr_tree_disconnect:return, 4328d7e4166Sjose borrego pid$target::smbrdr_open_pipe:return, 4330658b32dSAlan Wright pid$target::smbrdr_close_pipe:return, 4340658b32dSAlan Wright pid$target::smbrdr_ntcreatex:return, 4350658b32dSAlan Wright pid$target::smbrdr_transact:return, 4360658b32dSAlan Wright pid$target::smbrdr_readx*:return 4370658b32dSAlan Wright { 4380658b32dSAlan Wright printf("%d", arg1); 4390658b32dSAlan Wright } 4400658b32dSAlan Wright 4410658b32dSAlan Wright pid$target::ndr_clnt_get_frags:entry, 4420658b32dSAlan Wright pid$target::ndr_clnt_get_frag:entry 4430658b32dSAlan Wright { 4440658b32dSAlan Wright } 4450658b32dSAlan Wright 4460658b32dSAlan Wright pid$target::ndr_clnt_get_frags:return, 4470658b32dSAlan Wright pid$target::ndr_clnt_get_frag:return 44855bf511dSas200622 { 44955bf511dSas200622 printf("%d", arg1); 45055bf511dSas200622 } 451