[Openib-windows] Running WSD from as a non-administrator
Tzachi Dar
tzachid at mellanox.co.il
Wed Aug 2 12:48:57 PDT 2006
Hi Fab,
Any update on this issue? Can I at least check in the patch that was
sent?
Thanks
Tzachi
________________________________
From: openib-windows-bounces at openib.org
[mailto:openib-windows-bounces at openib.org] On Behalf Of Tzachi Dar
Sent: Sunday, July 30, 2006 6:08 PM
To: Fab Tillier; openib-windows at openib.org
Subject: [Openib-windows] Running WSD from as a
non-administrator
Hi Fab,
When testing WSD from an account that is not an administrator, I
have found out that we have a critical problem in this scenario. IT
seems that the way that we were creating the IOCTLs for IBAT was wrong,
and so was the way that we were opening the devices.
The following patch solves this problem. (See also discussions
on the OpenVpn forums about this:
http://openvpn.net/archive/openvpn-users/2004-09/msg00233.html)
Please also note that such a user will also not be able to
connect to the performance counters. Can you please fix this problem?
Another issue that we have noticed is that there is no counter
that tells the number of sockets that were connected using WSD. Can you
add such a counter?
Thanks
Tzachi
Index: inc/iba/ib_at_ioctl.h
===================================================================
--- inc/iba/ib_at_ioctl.h (revision 420)
+++ inc/iba/ib_at_ioctl.h (working copy)
@@ -46,7 +46,7 @@
#define IOCTL_IBAT( n ) \
CTL_CODE( FILE_DEVICE_UNKNOWN, (0x800 + n), \
- METHOD_BUFFERED, FILE_READ_ACCESS )
+ METHOD_BUFFERED, FILE_ANY_ACCESS )
/** This IRP is used to return all available CAs ports number
* and port guid */
Index: ulp/wsd/user/ibsp_ip.c
===================================================================
--- ulp/wsd/user/ibsp_ip.c (revision 420)
+++ ulp/wsd/user/ibsp_ip.c (working copy)
@@ -96,7 +96,7 @@
if( g_ibsp.h_ibat_dev == INVALID_HANDLE_VALUE )
{
g_ibsp.h_ibat_dev = CreateFileW( IBAT_WIN32_NAME,
- GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
+ MAXIMUM_ALLOWED, 0, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
}
cl_spinlock_release( &g_ibsp.ip_mutex );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060802/64ead6cf/attachment.html>
More information about the ofw
mailing list